buggyrace / buggy-race-server

Race server and supporting material for running a "Buggy Racing" Python programming project
https://www.buggyrace.net
Other
1 stars 0 forks source link

record persistent first logged_in_at timestamp #241

Closed davewhiteland closed 1 month ago

davewhiteland commented 2 months ago

It's turned out to be useful to know when students first logged in, but this information is not retained (logged_in_at gets updated with most-recent activity (with a fairly coarse interval). Maybe add a first_logged_in_at field to User for being able to spot late-starters.

Alternatively, this would be possible if we were retaining regular dumps including timestamps from #227

davewhiteland commented 1 month ago

Closed in v2.0.7 — users now have first_logged_in_at which, if it's empty, is set when the logged_in_at timestamp on a user is set. Implemented a bit clunkily — by hand — rather than a trigger on the logged_in_at timestamp.