Commit graph county-sprints/src/db.rs
Author SHA1 Message Date
Jonas Rabenstein
b26486c110 sync: show the target athlete's name, not the session's own
/sync/{athlete_id} always rendered 'Sync: <session.display_name>',
even when athlete_id (now possibly a foreign athlete, see the
previous 'allow syncing athletes other than the current session'
change) differed from the session's own athlete. The header now
2026-08-13 12:41:56 +02:00
OpenAI
50cd57417d show all known athletes for session on sync page 2026-08-13 12:06:48 +02:00
OpenAI
30542807b8 allow importing accessible foreign athletes 2026-08-13 12:04:21 +02:00
Claude
1a0ee71e6b sessions: expire after 1 day
Sessions previously had no expiry at all: a county_session cookie
was valid forever until an explicit /logout. Both session lookups
now reject rows older than 1 day (created_at-based, not sliding),
and db::delete_expired_sessions prunes expired rows so the table
doesn't grow unbounded; it's called during the existing OAuth-start
housekeeping alongside the oauth_states cleanup.
2026-08-13 04:12:13 +02:00
Claude
85369069c3 remove remaining dead code left over from /dev endpoints
db::ensure_dev_athlete was never called (main.rs had its own,
inferior copy, removed in the previous commit). Config::dev_sync_days
and Config::require_api_key were only used by the now-removed
/dev/sync handlers.
2026-08-13 04:12:13 +02:00
Jonas Rabenstein
2ab16a68b7 merge 2026-08-13 03:54:14 +02:00
Jonas Rabenstein
961d6665b5 fmt 2026-08-13 03:04:13 +02:00
Jonas Rabenstein
859603399a sync 2026-08-13 02:43:17 +02:00
Jonas Rabenstein
3cfd5bdd6c add map and clicks 2026-08-12 17:57:25 +02:00
Jonas Rabenstein
eda8e76a20 fixups 2026-08-12 14:24:50 +02:00
Jonas Rabenstein
89091a03d3 dev api key 2026-08-12 14:02:12 +02:00
Jonas Rabenstein
a9d22e8312 chatgpt 2026-08-12 13:24:01 +02:00