Skip to content

Commit

Permalink
prioritize caanview items when removing dupes
Browse files Browse the repository at this point in the history
  • Loading branch information
datawhores committed May 25, 2024
1 parent 5b62105 commit 7d8e64d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion ofscraper/classes/sessionmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@ def requests(
except Exception as E:
if is_rate_limited(E):
sleeper.toomany_req()


log.traceback_(E)
log.traceback_(traceback.format_exc())
Expand Down
2 changes: 1 addition & 1 deletion ofscraper/filters/media/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def sort_by_date(media):


def dupefilter(media):
output =defaultdict(None)
output =defaultdict(lambda:None)
for item in media:
if not output[item.id]:
output[item.id]=item
Expand Down

0 comments on commit 7d8e64d

Please sign in to comment.