Fix an incredibly stupid fix that replaces current rc_id with none if wiki had no new edits

This commit is contained in:
Frisk 2020-11-16 18:31:18 +01:00
parent 9e4d14e9d6
commit 10064be78d
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC

View file

@ -280,7 +280,7 @@ async def scan_group(group: str):
break break
await process_cats(change, local_wiki, mw_msgs, categorize_events) 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 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 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 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 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