mirror of
https://github.com/Chaoscaot/schemsearch.git
synced 2025-11-05 05:54:02 +01:00
Fixes
This commit is contained in:
@ -23,6 +23,9 @@ impl SchematicFilter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn build(self) -> String {
|
pub fn build(self) -> String {
|
||||||
|
if self.user_id.is_none() && self.name.is_none() {
|
||||||
|
return String::new();
|
||||||
|
}
|
||||||
let mut query = Vec::new();
|
let mut query = Vec::new();
|
||||||
if let Some(user_id) = self.user_id {
|
if let Some(user_id) = self.user_id {
|
||||||
query.push(user_id.into_iter().map(|id| format!("SN.NodeOwner = {}", id)).collect::<Vec<String>>().join(" OR "));
|
query.push(user_id.into_iter().map(|id| format!("SN.NodeOwner = {}", id)).collect::<Vec<String>>().join(" OR "));
|
||||||
|
|||||||
Reference in New Issue
Block a user