1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-26 23:39:22 +00:00

Fix mistake

This commit is contained in:
Pierre HUBERT 2020-06-22 14:33:14 +02:00
parent b9a8dce1a5
commit 4815de8925

View File

@ -145,7 +145,7 @@ impl QueryInfo {
pub fn cond_legacy_bool(mut self, key: &str, val: bool) -> QueryInfo { pub fn cond_legacy_bool(mut self, key: &str, val: bool) -> QueryInfo {
let val = match val { let val = match val {
true => "1".to_string(), true => "1".to_string(),
false => "2".to_string() false => "0".to_string()
}; };
self.conditions.insert(key.to_string(), val); self.conditions.insert(key.to_string(), val);