Skip to content

Small display issue with footprint in tons #24

@avchavanne

Description

@avchavanne

Just letting you know that there seems to be a typo in line 16 of frontend/helpers.py for the order of magnitude when the footprint is larger than 1e6:

text_footprint = f"{footprint_g / 1e3:,.0f} T{co2e}"

As the footprint is initially in grams, this should probably be something like:

text_footprint = f"{(footprint_g / 1e6):,.3f} T{co2e}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions