Skip to content

Commit

Permalink
format copilot
Browse files Browse the repository at this point in the history
  • Loading branch information
eumel8 committed Feb 5, 2024
1 parent 9aa25fe commit e287745
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flask/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,16 +169,16 @@ def metrics():
# Bio efficience
#######################################
if result_sum:
result_eco = (int(result_b01) + int(result_b09) + int(result_b10) + int(result_b11) + int(result_b12) + int(result_b16) + int(result_b17) + int(result_b18) + int(result_b19)) / int(result_sum)
result_eco = (int(result_b01) + int(result_b09) + int(result_b10) + int(result_b11) + int(result_b12) + int(result_b16) + int(result_b17) + int(result_b18) + int(result_b19)) / int(result_sum)
else:
result_eco = 0.99
result_eco = 0.99
#######################################
# Fossil part
#######################################
if result_sum:
result_fos = (int(result_b02) + int(result_b04) + int(result_b05)) / int(result_sum)
result_fos = (int(result_b02) + int(result_b04) + int(result_b05)) / int(result_sum)
else:
result_fos = 0.01
result_fos = 0.01
#######################################
# CO2 gramm/watt second
#######################################
Expand Down

0 comments on commit e287745

Please sign in to comment.