Skip to content

Commit

Permalink
Prevent spamming with same offer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Hrytsuk committed May 4, 2020
1 parent f410525 commit ef94da9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flathunter/hunter.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def hunt_flats(self, config, searchers, id_watch):
if not results:
break

for expose in results:
uniq_results = list({v['id']:v for v in results}.values())
for expose in uniq_results:
# check if already processed
if expose['id'] in processed:
continue
Expand Down

0 comments on commit ef94da9

Please sign in to comment.