mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Fix #174
This commit is contained in:
parent
aef23d26e9
commit
51b82d8fac
|
@ -155,7 +155,7 @@ class Recent_Changes_Class(object):
|
||||||
categorize_events = {}
|
categorize_events = {}
|
||||||
new_events = 0
|
new_events = 0
|
||||||
changes.reverse()
|
changes.reverse()
|
||||||
recent_id = storage["rcid"]
|
highest_id = recent_id = storage["rcid"]
|
||||||
dry_run = True if recent_id is None else False
|
dry_run = True if recent_id is None else False
|
||||||
for change in changes:
|
for change in changes:
|
||||||
if not dry_run and not (change["rcid"] <= recent_id):
|
if not dry_run and not (change["rcid"] <= recent_id):
|
||||||
|
@ -202,6 +202,8 @@ class Recent_Changes_Class(object):
|
||||||
"Init information not available, could not read category information. Please restart the bot.")
|
"Init information not available, could not read category information. Please restart the bot.")
|
||||||
else:
|
else:
|
||||||
logger.debug("Log entry got suppressed, ignoring entry.")
|
logger.debug("Log entry got suppressed, ignoring entry.")
|
||||||
|
if change["rcid"] > highest_id:
|
||||||
|
highest_id = change["rcid"]
|
||||||
if not dry_run:
|
if not dry_run:
|
||||||
for change in changes:
|
for change in changes:
|
||||||
if change["rcid"] <= recent_id:
|
if change["rcid"] <= recent_id:
|
||||||
|
@ -209,7 +211,7 @@ class Recent_Changes_Class(object):
|
||||||
continue
|
continue
|
||||||
logger.debug(recent_id)
|
logger.debug(recent_id)
|
||||||
essential_info(change, categorize_events.get(change.get("revid"), None))
|
essential_info(change, categorize_events.get(change.get("revid"), None))
|
||||||
return change["rcid"]
|
return highest_id
|
||||||
|
|
||||||
def prepare_abuse_log(self, abuse_log: list):
|
def prepare_abuse_log(self, abuse_log: list):
|
||||||
if not abuse_log:
|
if not abuse_log:
|
||||||
|
|
Loading…
Reference in a new issue