This commit is contained in:
Dessalines 2020-02-16 13:51:23 -05:00
commit 19826ca45b
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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()));
}