Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bwinf
medal
Commits
371c08a8
Commit
371c08a8
authored
May 07, 2020
by
Robert Czechowski
Committed by
Robert Czechowski
May 18, 2020
Browse files
Allow for submission up to ten seconds after contest time up
parent
86f8fffc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core.rs
View file @
371c08a8
...
...
@@ -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
<
-
1
0
{
return
Err
(
MedalError
::
AccessDenied
)
// Contest over
// TODO: Nicer message!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment