Skip to content

Commit

Permalink
add update_averages call to importers missing it
Browse files Browse the repository at this point in the history
Some importers were not calculating an average value which meant there
was no default value when a filter was selected.

Fixes #327
  • Loading branch information
struan committed Nov 28, 2023
1 parent 92b7b4f commit 7808b54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def handle(self, quiet=False, *args, **kwargs):
self.add_data_sets()
self.delete_data()
self.process_data()
self.update_averages()
self.update_max_min()

def add_to_dict(self, df):
Expand Down
1 change: 1 addition & 0 deletions hub/management/commands/import_wi_group_locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def handle(self, quiet=False, *args, **kwargs):
self.add_data_sets()
self.delete_data()
self.process_data()
self.update_averages()
self.update_max_min()

def process_data(self):
Expand Down

0 comments on commit 7808b54

Please sign in to comment.