We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a65b86c commit 2c0858bCopy full SHA for 2c0858b
reoptjl/views.py
@@ -855,7 +855,7 @@ def queryset_for_summary(api_metas,summary_dict:dict):
855
)
856
if len(tariffOuts) > 0:
857
for m in tariffOuts:
858
- if len(tariffInputs) > 0:
+ if (m.year_one_bill_before_tax_bau is not None) and (m.year_one_bill_before_tax is not None):
859
summary_dict[str(m.meta.run_uuid)]['year_one_savings_us_dollars'] = m.year_one_bill_before_tax_bau - m.year_one_bill_before_tax
860
else:
861
summary_dict[str(m.meta.run_uuid)]['year_one_savings_us_dollars'] = 0.0
0 commit comments