#20 last_submit is updated too soon

Open
opened 2 weeks ago by hz · 1 comments
hz commented 2 weeks 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 weeks ago
hz added the
bug
label 2 weeks ago
hz added the
beginner friendly
label 2 weeks ago
hz commented 1 week 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.
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.