From 4f60da02a0dcd0f679c0bd9b2b970f5bce0013d9 Mon Sep 17 00:00:00 2001 From: Frisk Date: Thu, 29 Oct 2020 20:41:11 +0100 Subject: [PATCH] Don't overwrite the LimitedList class with normal Python list when removing a wiki from the group --- src/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot.py b/src/bot.py index 7b62b77..b72794f 100644 --- a/src/bot.py +++ b/src/bot.py @@ -72,7 +72,7 @@ class RcQueue: """Removes a wiki from query of given domain group""" logger.debug(f"Removing {wiki} from group queue.") group = get_domain(wiki) - self[group]["query"] = [x for x in self[group]["query"] if x.url != wiki] + self[group]["query"] = LimitedList([x for x in self[group]["query"] if x.url != wiki]) if not self[group]["query"]: # if there is no wiki left in the queue, get rid of the task logger.debug(f"{group} no longer has any wikis queued!") all_wikis[wiki].rc_active = -1