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
724b2466
Commit
724b2466
authored
Mar 26, 2020
by
Robert Czechowski
Browse files
Show challenges in list of all contests
parent
6ea1ca71
Pipeline
#568
passed with stages
in 18 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/core.rs
View file @
724b2466
...
...
@@ -189,7 +189,7 @@ pub fn show_contests<T: MedalConnection>(conn: &T, session_token: &str,
.filter
(|
c
|
c
.duration
==
0
||
visibility
!=
ContestVisibility
::
Open
)
.filter
(|
c
|
c
.duration
!=
0
||
visibility
!=
ContestVisibility
::
Current
)
.filter
(|
c
|
c
.requires_login
.unwrap_or
(
false
)
||
visibility
!=
ContestVisibility
::
LoginRequired
)
.filter
(|
c
|
!
c
.requires_login
.unwrap_or
(
false
)
||
visibility
==
ContestVisibility
::
LoginRequired
)
.filter
(|
c
|
!
c
.requires_login
.unwrap_or
(
false
)
||
visibility
==
ContestVisibility
::
LoginRequired
||
visibility
==
ContestVisibility
::
All
)
.map
(|
c
|
ContestInfo
{
id
:
c
.id
.unwrap
(),
name
:
c
.name
.clone
(),
duration
:
c
.duration
,
public
:
c
.public
})
.collect
();
...
...
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