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
5bc670f1
Commit
5bc670f1
authored
Nov 12, 2020
by
Robert Czechowski
Committed by
Robert Czechowski
Jan 05, 2021
Browse files
Change contest config for required contest from comma separated string to YAML list of strings
parent
2f7b4f73
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/contestreader_yaml.rs
View file @
5bc670f1
...
...
@@ -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)
...
...
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