Skip to content

Commit

Permalink
add meter of type Electric to bsyncr analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
kflemin committed Jan 10, 2025
1 parent c70f4c7 commit 2a651e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seed/analysis_pipelines/bsyncr.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def _prepare_all_properties(self, analysis_view_ids_by_property_view_id, analysi
for analysis_property_view in analysis_property_views:
meters = Meter.objects.annotate(readings_count=Count("meter_readings")).filter(
property=analysis_property_view.property,
type__in=[Meter.ELECTRICITY_GRID, Meter.ELECTRICITY_SOLAR, Meter.ELECTRICITY_WIND, Meter.ELECTRICITY_UNKNOWN],
type__in=[Meter.ELECTRICITY, Meter.ELECTRICITY_GRID, Meter.ELECTRICITY_SOLAR, Meter.ELECTRICITY_WIND, Meter.ELECTRICITY_UNKNOWN],
readings_count__gte=12,
)
if meters.count() == 0:
Expand Down

0 comments on commit 2a651e8

Please sign in to comment.