Commit d1a82c75 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Hotfix: Show contest time

parent 381b0d35
Pipeline #357 passed with stages
in 33 minutes and 58 seconds
......@@ -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(&;
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))
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