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
d1a82c75
Commit
d1a82c75
authored
Jan 31, 2020
by
Robert Czechowski
Browse files
Hotfix: Show contest time
parent
381b0d35
Pipeline
#357
passed with stages
in 33 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/core.rs
View file @
d1a82c75
...
...
@@ -533,6 +533,10 @@ pub fn show_task<T: MedalConnection>(conn: &T, task_id: i32, session_token: &str
data
.insert
(
"contestid"
.to_string
(),
to_json
(
&
c
.id
));
data
.insert
(
"seconds_left"
.to_string
(),
to_json
(
&
left_secs
));
if
c
.duration
>
0
{
data
.insert
(
"duration"
.to_string
(),
to_json
(
&
true
));
}
Ok
((
"task"
.to_owned
(),
data
))
}
}
...
...
Robert Czechowski
@zgtm
mentioned in issue
#52 (closed)
·
Jan 31, 2020
mentioned in issue
#52 (closed)
mentioned in issue #52
Toggle commit list
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