Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
medal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
39
Issues
39
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bwinf
medal
Commits
71a536a0
Commit
71a536a0
authored
Nov 12, 2020
by
Robert Czechowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/contestreader_yaml.rs
src/contestreader_yaml.rs
+2
-2
No files found.
src/contestreader_yaml.rs
View file @
71a536a0
...
...
@@ -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