master
Jean-Louis Huynen 2019-04-23 15:34:46 +02:00
parent 5fae5f1a74
commit 96f242ceb3
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ plan = plpy.prepare("SELECT * FROM fuzzy_hash WHERE type <> $1", ["text"])
rv = plan.execute(["filter"], maxrows)
r = []
for x in rv:
if tlsh.diff(x["value"], hash) > threshold:
if tlsh.diff(x["value"], hash) < threshold:
r.append(x)
return r
$$;