mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Fix an incredibly stupid fix that replaces current rc_id with none if wiki had no new edits
This commit is contained in:
parent
9e4d14e9d6
commit
10064be78d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue