Skip to content

Fix chadwick_register() ignoring stale local cache file - #513

Open
asadQ-dev wants to merge 1 commit into
jldbc:masterfrom
asadQ-dev:fix-chadwick-register-cache
Open

asadQ-dev wants to merge 1 commit into
jldbc:masterfrom
asadQ-dev:fix-chadwick-register-cache

Conversation

@asadQ-dev

Copy link
Copy Markdown

chadwick_register() checked only whether the local chadwick-register.csv existed, with no expiration check, so once a user called it with save=True the local copy was trusted forever and new players added upstream (e.g. new rookies) were never picked up. Added an age check against the existing cache.config.default_expiration threshold, matching the pattern already used elsewhere in the cache system.

Fixes #493

chadwick_register() checked only whether the local
chadwick-register.csv existed, with no expiration check,
so once a user called it with save=True the local copy
was trusted forever and new players added upstream (e.g.
new rookies) were never picked up. Added an age check
against the existing cache.config.default_expiration
threshold, matching the pattern already used elsewhere
in the cache system.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

playerid_reverse_lookup does not have 2025 rookies included

1 participant