#20 last_submit is updated too soon

Closed
opened 2 months ago by hz · 2 comments
hz commented 2 months ago

The ‘last_submit’ field in the problemstate log is updated too soon (immediately upon submitting, even if a submission isn’t allowed).

The 'last_submit' field in the problemstate log is updated too soon (immediately upon submitting, even if a submission isn't allowed).
hz added this to the 14.0.0 milestone 2 months ago
hz added the
bug
label 2 months ago
hz added the
beginner friendly
label 2 months ago
hz commented 2 months ago
Owner

The relevant code for this is in __HANDLERS__/default/default.py. Near the top of the handle_submission function (around line 1000 or so), we update the log before using the submit_msg function to check for an error, instead of after.

The relevant code for this is in `__HANDLERS__/default/default.py`. Near the top of the `handle_submission` function (around line 1000 or so), we update the log _before_ using the `submit_msg` function to check for an error, instead of after.
hz commented 1 month ago
Owner

Should be fixed in 7d5bc5ff29

Should be fixed in 7d5bc5ff29aabd0d192cfef9e066c2cdc908d4e4
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.