Skip to content

Commit fe5aa10

Browse files
authored
Fixed minor bug in find_all()
FIXED: If two matches were next to each other, but without at least a pixel separating them, the bot would consider them to be duplicates.
1 parent bfc2948 commit fe5aa10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

botcity/web/bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,8 @@ def find_same(item, items):
530530
for itm in items:
531531
if itm == item:
532532
continue
533-
if (itm.left >= x_start and itm.left <= x_end)\
534-
and (itm.top >= y_start and itm.top <= y_end):
533+
if (itm.left >= x_start and itm.left < x_end)\
534+
and (itm.top >= y_start and itm.top < y_end):
535535
similars.append(itm)
536536
continue
537537
return similars

0 commit comments

Comments
 (0)