Commit 5bc670f1 authored by Robert Czechowski's avatar Robert Czechowski Committed by Robert Czechowski
Browse files

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

parent 2f7b4f73
......@@ -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