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:
|
services:
|
||||||
torrents-csv:
|
torrents-csv:
|
||||||
image: dessalines/torrents-csv:v0.0.7
|
image: dessalines/torrents-csv:v0.0.7.1
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "8902:8080"
|
- "8902:8080"
|
||||||
|
|
|
@ -93,7 +93,7 @@ fn search_query(
|
||||||
) -> Result<Value, Error> {
|
) -> Result<Value, Error> {
|
||||||
|
|
||||||
let q = query.q.trim();
|
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()));
|
return Err(format_err!("{{\"error\": \"{}\"}}", "Empty query".to_string()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue