Skip to content

Commit

Permalink
fix the bug for seen_urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Thomas committed Mar 9, 2023
1 parent 3ad35ed commit 8f5fff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def __len__(self):
)

with open(SEEN_URLS_FILE, "w", encoding="utf-8") as f:
f.write("\n".join(list(SEEN_URLS)[:10000]))
f.write("\n".join(list(SEEN_URLS)[-10000:]))

with open(REPLIED_TOOT_SERVER_IDS_FILE, "w", encoding="utf-8") as f:
json.dump(dict(list(REPLIED_TOOT_SERVER_IDS.items())[:10000]), f)
json.dump(dict(list(REPLIED_TOOT_SERVER_IDS.items())[-10000:]), f)

0 comments on commit 8f5fff2

Please sign in to comment.