fix issue where rcid = None is never resolved

This commit is contained in:
Markus-Rost 2020-07-27 05:17:30 +02:00
parent d299b515e5
commit d88bb027cb

View file

@ -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 len(recent_changes) > 0:
DBHandler.add(db_wiki[1], recent_changes[-1]["rcid"])
continue
else:
DBHandler.add(db_wiki[1], 0)
DBHandler.update_db()
continue
categorize_events = {}
targets = generate_targets(db_wiki[1])