Skip to content

Commit 2c0858b

Browse files
committed
Hot Fix check on year_one_bill_ is None
1 parent a65b86c commit 2c0858b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reoptjl/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ def queryset_for_summary(api_metas,summary_dict:dict):
855855
)
856856
if len(tariffOuts) > 0:
857857
for m in tariffOuts:
858-
if len(tariffInputs) > 0:
858+
if (m.year_one_bill_before_tax_bau is not None) and (m.year_one_bill_before_tax is not None):
859859
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
860860
else:
861861
summary_dict[str(m.meta.run_uuid)]['year_one_savings_us_dollars'] = 0.0

0 commit comments

Comments
 (0)