Skip to content

Commit

Permalink
fixed computation of indicators
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrFr committed Nov 4, 2019
1 parent 4b28e28 commit 206e28b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion repair/apps/statusquo/views/computation.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def get_queryset(self, indicator_flow, geom=None):
hazardous = indicator_flow.hazardous.name
avoidable = indicator_flow.avoidable.name

flows = get_annotated_fractionflows(self.keyflow_pk, strategy=self.strategy)
flows = get_annotated_fractionflows(self.keyflow_pk,
strategy_id=self.strategy.id)

# filter flows by type (waste/product/both)
if flow_type != 'BOTH':
Expand Down

0 comments on commit 206e28b

Please sign in to comment.