Don't overwrite the LimitedList class with normal Python list when removing a wiki from the group

This commit is contained in:
Frisk 2020-10-29 20:41:11 +01:00
parent d79afc62a5
commit 4f60da02a0
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC

View file

@ -72,7 +72,7 @@ class RcQueue:
"""Removes a wiki from query of given domain group""" """Removes a wiki from query of given domain group"""
logger.debug(f"Removing {wiki} from group queue.") logger.debug(f"Removing {wiki} from group queue.")
group = get_domain(wiki) 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 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!") logger.debug(f"{group} no longer has any wikis queued!")
all_wikis[wiki].rc_active = -1 all_wikis[wiki].rc_active = -1