Commit 724b2466 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Show challenges in list of all contests

parent 6ea1ca71
Pipeline #568 passed with stages
in 18 minutes and 46 seconds
......@@ -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();
......
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