Skip to content

Commit

Permalink
Merge 2186090 into b491ae2
Browse files Browse the repository at this point in the history
  • Loading branch information
macintoshpie committed May 11, 2020
2 parents b491ae2 + 2186090 commit 2b8c7eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions seed/utils/meters.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def __init__(self, property_id, org_id, excluded_meter_ids, scenario_ids=None):
self._cache_factors = None
self._cache_org_country = None

scenario_ids = scenario_ids if scenario_ids is not None else []
self.meters = Meter.objects.filter(
Q(property_id=property_id) | Q(scenario_id__in=scenario_ids)
).exclude(pk__in=excluded_meter_ids)
Expand Down

0 comments on commit 2b8c7eb

Please sign in to comment.