From bf7d62507746e2fd1315db95f6126fb8baf83fa6 Mon Sep 17 00:00:00 2001 From: Frisk Date: Tue, 21 Aug 2018 18:38:05 +0200 Subject: [PATCH] Bigger limit to the cache --- rcgcdw.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rcgcdw.py b/rcgcdw.py index aecad77..079ab1a 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -619,7 +619,7 @@ class recent_changes_class(object): def add_cache(self, change): self.ids.append(change["rcid"]) #self.recent_id = change["rcid"] - if len(self.ids) > settings["limit"]+5: + if len(self.ids) > settings["limitrefetch"]+5: self.ids.pop(0) def fetch(self, amount=settings["limit"]): @@ -684,7 +684,6 @@ class recent_changes_class(object): logging.debug("Rejected {val}".format(val=change["rcid"])) continue first_pass(change) - #self.last_datetime = datetime.datetime.fromisoformat(change["timestamp"][0:19]) return change["rcid"] def safe_request(self, url):