Commit 371c08a8 authored by Robert Czechowski's avatar Robert Czechowski Committed by Robert Czechowski

Allow for submission up to ten seconds after contest time up

parent 86f8fffc
......@@ -570,7 +570,7 @@ pub fn save_submission<T: MedalConnection>(conn: &T, task_id: i32, session_token
}
let left_secs = i64::from(c.duration) * 60 - passed_secs;
if c.duration > 0 && left_secs < 0 {
if c.duration > 0 && left_secs < -10 {
return Err(MedalError::AccessDenied)
// Contest over
// TODO: Nicer message!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment