Skip to content

Fetch a player's Steam profile after each new run - #14

Merged
github-actions[bot] merged 1 commit into
sourcejump:u/zasbufrom
zasbu:feat/steam-profile-on-run
Nov 7, 2026
Merged

github-actions[bot] merged 1 commit into
sourcejump:u/zasbufrom
zasbu:feat/steam-profile-on-run

Conversation

@zasbu

@zasbu zasbu commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

API change: players who just play were showing initials and no flag, because their Steam profile was fetched only at sign-in or when someone opened their profile. After a new run is stored, a profile older than a day (or never fetched) is now queued for a refresh, through the existing queue (one request every 2 s, at most 50 waiting).

Note: the dev previews only build the website and read from the beta API, so this takes effect once the API is deployed (just deploy beta).

Checked: the run submission tests (26 passed), clippy with warnings as errors, rustfmt.

A player's avatar and country were fetched from Steam only when they signed
in or someone opened their profile, so players who just play showed initials
and no flag everywhere they were listed: recently active players, boards,
search. Their runs now keep the copy fresh too: after a new run is stored,
a profile older than a day (or never fetched) is queued for a refresh.

It uses the existing queue, so Steam still sees at most one request every
2 s and no more than 50 waiting, however busy the servers are.
@github-actions
github-actions Bot merged commit 98ccb4a into sourcejump:u/zasbu Nov 7, 2026
3 checks passed
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

Merged into u/zasbu. It'll be live at https://zasbu-sj.okwhiteli.st in a few minutes.

@zasbu
zasbu deleted the feat/steam-profile-on-run branch November 9, 2026 09:32
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.

1 participant