Fixed a bug: Found item repeated in competitors if Free Software.

This commit is contained in:
jyamihud 2022-04-08 19:11:38 +03:00
parent 1a464b493d
commit 991a046601

View file

@ -161,7 +161,7 @@ def suggestions(page, json):
for i in found:
free = search.is_free(i[-1])
if not i[0] or i[-1] == json or not free:
if not i[0] or i[-1]["names"] == json["names"] or not free:
continue
try:
frac = int(i[0]/biggest*100)