Removing 2020
This commit is contained in:
parent
091fa30605
commit
e13a2e7ce6
|
@ -93,7 +93,7 @@ fn search_query(
|
|||
) -> Result<Value, Error> {
|
||||
|
||||
let q = query.q.trim();
|
||||
if q.is_empty() || q.len() < 3 {
|
||||
if q.is_empty() || q.len() < 3 || q == "2020" {
|
||||
return Err(format_err!("{{\"error\": \"{}\"}}", "Empty query".to_string()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue