Commit a2efdbf1 authored by Robert Czechowski's avatar Robert Czechowski

Change version number to 1.1

parent 724b2466
Pipeline #652 passed with stage
in 15 minutes and 52 seconds
......@@ -898,7 +898,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "medal"
version = "1.0.1"
version = "1.1.0"
dependencies = [
"bcrypt 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"handlebars-iron 0.25.2 (registry+https://github.com/rust-lang/crates.io-index)",
......
[package]
name = "medal"
version = "1.0.1"
version = "1.1.0"
authors = ["Robert Czechowski <czechowski@bwinf.de>", "Daniel Brüning <bruening@bwinf.de>"]
description = "A simple online contest platform"
......
......@@ -189,7 +189,11 @@ 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 || visibility == ContestVisibility::All)
.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