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