From 10064be78d6b189de1a7d42d33efd7010d27f2b0 Mon Sep 17 00:00:00 2001 From: Frisk Date: Mon, 16 Nov 2020 18:31:18 +0100 Subject: [PATCH] Fix an incredibly stupid fix that replaces current rc_id with none if wiki had no new edits --- src/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot.py b/src/bot.py index 6fb3148..a0b0fac 100644 --- a/src/bot.py +++ b/src/bot.py @@ -280,7 +280,7 @@ async def scan_group(group: str): break await process_cats(change, local_wiki, mw_msgs, categorize_events) else: # If we broke from previous loop (too many changes) don't execute sending messages here - highest_rc = None # setup var for later use + highest_rc = local_wiki.rc_active # setup var for later use for change in recent_changes: # Yeah, second loop since the categories require to be all loaded up if change["rcid"] > local_wiki.rc_active: if highest_rc is None or change["rcid"] > highest_rc: # make sure that the highest_rc is really highest rcid but do allow other entries with potentially lesser rcids come after without breaking the cycle