mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Don't overwrite the LimitedList class with normal Python list when removing a wiki from the group
This commit is contained in:
parent
d79afc62a5
commit
4f60da02a0
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue