Skip to content

Add number of checkmarks vs. qr codes logic method #89

@helenailic

Description

@helenailic

Utilize the n_checkpoints field in the database compared to the number of points they currently have (and thus number of checkpoints they've crossed) to return how many crossed checkpoints should be checkmarks vs. qr codes

Example:
I have 60 points, which means I've crossed 3 checkpoints.
n_checkpoints = 2, meaning i've already redeemed 2 of them.
Thus, I would return 2 checkmarks, 1 qr code.

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