Skip to content

Commit

Permalink
Merge pull request #17 from bypotatoes/master
Browse files Browse the repository at this point in the history
Prevent spamming with same offer
  • Loading branch information
NodyHub authored Jul 10, 2020
2 parents f410525 + ef94da9 commit 0515980
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 0515980

Please sign in to comment.