Commit 71a536a0 authored by Robert Czechowski's avatar Robert Czechowski

Change contest config for required contest from comma separated string to YAML list of strings

parent 73545daa
Pipeline #908 failed with stage
in 1 minute and 53 seconds
......@@ -27,7 +27,7 @@ struct ContestYaml {
public_listing: Option<bool>,
requires_login: Option<bool>,
requires_contest: Option<String>,
requires_contest: Option<Vec<String>>,
secret: Option<String>,
message: Option<String>,
......@@ -63,7 +63,7 @@ pub fn parse_yaml(content: &str, filename: &str, directory: &str) -> Option<Cont
config.max_grade,
config.position,
config.requires_login,
config.requires_contest,
config.requires_contest.map(|list| list.join(",")),
config.secret,
config.message);
// TODO: Timeparsing should fail more pleasantly (-> Panic, thus shows 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