mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-26 23:39:22 +00:00
Fix mistake
This commit is contained in:
parent
b9a8dce1a5
commit
4815de8925
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user