Commit 9dc3e879 authored by Robert Czechowski's avatar Robert Czechowski

Comment about 'required_contest' usage

parent 54591e7f
......@@ -72,6 +72,7 @@ fn parse_yaml(content: &str, filename: &str, directory: &str) -> Option<Contest>
config.max_grade,
config.position,
config.requires_login,
// Consumed by `let required_contests = contest.requires_contest.as_ref()?.split(',');` in core.rs
config.requires_contest.map(|list| list.join(",")),
config.secret,
config.message);
......
......@@ -292,6 +292,7 @@ pub struct ContestStartConstraints {
}
fn check_contest_qualification<T: MedalConnection>(conn: &T, session: &SessionUser, contest: &Contest) -> Option<bool> {
// Produced by `config.requires_contest.map(|list| list.join(",")),` in contestreader_yaml.rs
let required_contests = contest.requires_contest.as_ref()?.split(',');
for req_contest in required_contests {
......
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