From fb4d072b15b95c35c4f247d4c688f8506e3b5389 Mon Sep 17 00:00:00 2001 From: Daniel Tam Date: Thu, 20 Jun 2024 15:35:47 -0500 Subject: [PATCH] remove first element rather than last from sent list --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index b241cf2..c77a5f9 100644 --- a/main.py +++ b/main.py @@ -57,7 +57,7 @@ def sent_previously(url): # Prune sent list while len(sent) > 100: - sent.pop() + sent.pop(0) # Write cache to disk with open(cache_file, "w") as file: