Skip to content

Commit

Permalink
Hot Fix check on year_one_bill_ is None
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Becker committed Jan 11, 2024
1 parent a65b86c commit 2c0858b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reoptjl/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ def queryset_for_summary(api_metas,summary_dict:dict):
)
if len(tariffOuts) > 0:
for m in tariffOuts:
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):
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
else:
summary_dict[str(m.meta.run_uuid)]['year_one_savings_us_dollars'] = 0.0
Expand Down

0 comments on commit 2c0858b

Please sign in to comment.