Merge branch 'master' of https://gitlab.com/dessalines/torrents.csv
This commit is contained in:
commit
19826ca45b
|
@ -2,7 +2,7 @@ version: '3.7'
|
|||
|
||||
services:
|
||||
torrents-csv:
|
||||
image: dessalines/torrents-csv:v0.0.7
|
||||
image: dessalines/torrents-csv:v0.0.7.1
|
||||
restart: always
|
||||
ports:
|
||||
- "8902:8080"
|
||||
|
|
|
@ -93,7 +93,7 @@ fn search_query(
|
|||
) -> Result<Value, Error> {
|
||||
|
||||
let q = query.q.trim();
|
||||
if q.is_empty() || q == "*" {
|
||||
if q.is_empty() || q.len() <= 3 {
|
||||
return Err(format_err!("{{\"error\": \"{}\"}}", "Empty query".to_string()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue