From 6c91c077fc3691447771ba25292e16258ddd323a Mon Sep 17 00:00:00 2001 From: Frisk Date: Sat, 9 Nov 2019 23:09:59 +0100 Subject: [PATCH] Attempt to fix the #90 by relying only on cached rcids --- rcgcdw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rcgcdw.py b/rcgcdw.py index c3bc234..55559ee 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -1141,7 +1141,7 @@ class Recent_Changes_Class(object): categorize_events = {} new_events = 0 for change in changes: - if not (change["rcid"] in self.ids or change["rcid"] < self.recent_id) and not clean: + if not (change["rcid"] in self.ids) and not clean: new_events += 1 logger.debug( "New event: {}".format(change["rcid"])) @@ -1179,7 +1179,7 @@ class Recent_Changes_Class(object): # logger.debug("New category '{}' for {}".format(cat_title, change["revid"])) # categorize_events[change["revid"]] = {cat_title: } for change in changes: - if change["rcid"] in self.ids or change["rcid"] < self.recent_id: + if change["rcid"] in self.ids: logger.debug("Change ({}) is in ids or is lower than recent_id {}".format(change["rcid"], self.recent_id)) continue