...
parent
5fae5f1a74
commit
96f242ceb3
|
@ -308,7 +308,7 @@ plan = plpy.prepare("SELECT * FROM fuzzy_hash WHERE type <> $1", ["text"])
|
||||||
rv = plan.execute(["filter"], maxrows)
|
rv = plan.execute(["filter"], maxrows)
|
||||||
r = []
|
r = []
|
||||||
for x in rv:
|
for x in rv:
|
||||||
if tlsh.diff(x["value"], hash) > threshold:
|
if tlsh.diff(x["value"], hash) < threshold:
|
||||||
r.append(x)
|
r.append(x)
|
||||||
return r
|
return r
|
||||||
$$;
|
$$;
|
||||||
|
|
Loading…
Reference in New Issue