mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-22 00:14:10 +00:00
Return the maximum ID of all abuse log entries instead of the last ID.
This fixes an issue where abuse log entries are returned out of order from the API, leading to constantly repeating abuse filter messages being sent to Discord.
This commit is contained in:
parent
d4d50d3529
commit
de937dc2f3
|
@ -232,7 +232,7 @@ class Wiki(object):
|
|||
if entry["id"] <= recent_id:
|
||||
continue
|
||||
self.abuse_processor(entry)
|
||||
return entry["id"]
|
||||
return max([entry["id"] for entry in abuse_log])
|
||||
|
||||
def fetch_changes(self, amount):
|
||||
"""Fetches the :amount: of changes from the wiki.
|
||||
|
|
Loading…
Reference in a new issue