Skip to content

check_cards docstring states the STALE lead limit as double what the code applies #233

Description

@realmarcin

From the round-2 review of #212.

Where: scripts/fleet/check_cards.py:22-23.

The docstring says STALE applies when "the card understates the site by more than MAX_LEAD". Measured against the site, the way the constants comment uses "understates", that is site > 2 × card. The code fails at site > 1.5 × card (site - card > card * MAX_LEAD), which is what the constants comment, the README and the PR body say.

Fix: "the site leads the card by more than MAX_LEAD of the card (the card then understates it by over a third)".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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