Skip to content

Commit

Permalink
Merge pull request #1797 from bcgov/LCFS-1760-SetBackAmountsLine6_8
Browse files Browse the repository at this point in the history
hotfix: Update Summary Calculations to not exclude 11 and 21
  • Loading branch information
areyeslo authored Jan 25, 2025
2 parents 65d2ff6 + a982a73 commit 571b879
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/lcfs/web/api/compliance_report/summary_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,11 +591,11 @@ def calculate_renewable_fuel_target_summary(
line=line,
description=(
RENEWABLE_FUEL_TARGET_DESCRIPTIONS[line]["description"].format(
"{:,}".format(int(summary_lines["4"]["gasoline"] * 0.05)),
"{:,}".format(int(summary_lines["4"]["diesel"] * 0.05)),
"{:,}".format(int(summary_lines["4"]["jet_fuel"] * 0.05)),
"{:,}".format(round(summary_lines[4]["gasoline"] * 0.05)),
"{:,}".format(round(summary_lines[4]["diesel"] * 0.05)),
"{:,}".format(round(summary_lines[4]["jet_fuel"] * 0.05)),
)
if (line in ["6", "8"])
if (line in [6, 8])
else RENEWABLE_FUEL_TARGET_DESCRIPTIONS[line]["description"]
),
field=RENEWABLE_FUEL_TARGET_DESCRIPTIONS[line]["field"],
Expand Down

0 comments on commit 571b879

Please sign in to comment.