From c40beecf437fd44b40d5ac9cb362339511c433ed Mon Sep 17 00:00:00 2001 From: Frisk Date: Tue, 11 Aug 2020 20:15:25 +0200 Subject: [PATCH] Fix issue when webhook is switched to on with RC --- src/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot.py b/src/bot.py index 7acf082..36fc73c 100644 --- a/src/bot.py +++ b/src/bot.py @@ -233,7 +233,7 @@ async def scan_group(group: str): continue if extended: await process_mwmsgs(recent_changes_resp, local_wiki, mw_msgs) - if local_wiki.rc_active in (0, None): # new wiki, just get the last rc to not spam the channel + if local_wiki.rc_active in (0, None, -1): # new wiki, just get the last rc to not spam the channel, -1 for -1 to NULL changes if len(recent_changes) > 0: local_wiki.rc_active = recent_changes[-1]["rcid"] DBHandler.add(queued_wiki.url, recent_changes[-1]["rcid"])