Edge case: manual duration of 1 day counts as "session in progress" #58
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
To determine whether a session is considered unfinished (in progress), we check if its
timestamp_end
is null and if seconds ofduration_manual
is 01. However, theDurationField
in Django doesn't report total number of seconds, it only reports a remainder that doesn't fit neatly into one of the higher units. Thus when there is an exact amount of 24 hours, it equals 1 day and seconds are set to 0.d2a9630b04/games/views.py (L195)
↩︎