mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
fix issue where rcid = None is never resolved
This commit is contained in:
parent
d299b515e5
commit
d88bb027cb
|
@ -94,9 +94,9 @@ async def wiki_scanner():
|
||||||
if db_wiki[5] is None: # new wiki, just get the last rc to not spam the channel
|
if db_wiki[5] is None: # new wiki, just get the last rc to not spam the channel
|
||||||
if len(recent_changes) > 0:
|
if len(recent_changes) > 0:
|
||||||
DBHandler.add(db_wiki[1], recent_changes[-1]["rcid"])
|
DBHandler.add(db_wiki[1], recent_changes[-1]["rcid"])
|
||||||
continue
|
|
||||||
else:
|
else:
|
||||||
DBHandler.add(db_wiki[1], 0)
|
DBHandler.add(db_wiki[1], 0)
|
||||||
|
DBHandler.update_db()
|
||||||
continue
|
continue
|
||||||
categorize_events = {}
|
categorize_events = {}
|
||||||
targets = generate_targets(db_wiki[1])
|
targets = generate_targets(db_wiki[1])
|
||||||
|
|
Loading…
Reference in a new issue