diff --git a/repair/apps/statusquo/views/computation.py b/repair/apps/statusquo/views/computation.py index 006898d3a..9a2d7b873 100644 --- a/repair/apps/statusquo/views/computation.py +++ b/repair/apps/statusquo/views/computation.py @@ -49,8 +49,10 @@ def get_queryset(self, indicator_flow, geom=None): hazardous = indicator_flow.hazardous.name avoidable = indicator_flow.avoidable.name + strategy_id = getattr(self.strategy, 'id', None) + flows = get_annotated_fractionflows(self.keyflow_pk, - strategy_id=self.strategy.id) + strategy_id=strategy_id) # filter flows by type (waste/product/both) if flow_type != 'BOTH':