Skip to content

Commit

Permalink
chore: round reporting only to 4 decimal places
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Dec 17, 2024
1 parent 68b330a commit 594cafb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bc_obps/reporting/service/compliance_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def get_calculated_compliance_data(cls, report_version_id: int) -> ComplianceDat
# Craft return object with all data
return_object = ComplianceDataSchemaOut(
emissions_attributable_for_reporting=attributable_for_reporting_total,
reporting_only_emissions=total_allocated_reporting_only,
reporting_only_emissions=round(Decimal(total_allocated_reporting_only), 4),
emissions_attributable_for_compliance=round(total_allocated_for_compliance_2024, 4),
emissions_limit=round(emissions_limit_total, 4),
excess_emissions=round(excess_emissions, 4),
Expand Down

0 comments on commit 594cafb

Please sign in to comment.