mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Fixed an oopsie
This commit is contained in:
parent
e81198d84b
commit
d6df680e92
|
@ -3,7 +3,6 @@ RcGcDb is a backend for handling webhooks to which recent changes of MediaWiki w
|
|||
|
||||
### Dependencies ###
|
||||
* **Python 3.6>**
|
||||
* requests 2.18.4>
|
||||
* beautifulsoup 4.6.0>
|
||||
* aiohttp 3.6.2>
|
||||
* lxml 4.2.1>
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
beautifulsoup4 >= 4.6.0; python_version >= '3.6'
|
||||
requests >= 2.18.4
|
||||
aiohttp >= 3.6.2
|
||||
lxml >= 4.2.1
|
|
@ -111,10 +111,10 @@ class RcQueue:
|
|||
all_wikis[db_wiki["wiki"]] = Wiki()
|
||||
all_wikis[db_wiki["wiki"]].rc_active = db_wiki["rcid"]
|
||||
try:
|
||||
self.to_remove.remove(db_wiki["wiki"])
|
||||
current_domain = self[domain]
|
||||
if not db_wiki["ROWID"] < current_domain["last_rowid"]:
|
||||
current_domain["query"].append(QueuedWiki(db_wiki["wiki"], 20))
|
||||
self.to_remove.remove(db_wiki["wiki"])
|
||||
except KeyError:
|
||||
await self.start_group(domain, db_wiki)
|
||||
logger.info("A new domain group has been added since last time, adding it to the domain_list and starting a task...")
|
||||
|
|
Loading…
Reference in a new issue