Fixed an oopsie

This commit is contained in:
Frisk 2020-08-09 15:03:04 +02:00
parent e81198d84b
commit d6df680e92
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC
3 changed files with 1 additions and 3 deletions

View file

@ -3,7 +3,6 @@ RcGcDb is a backend for handling webhooks to which recent changes of MediaWiki w
### Dependencies ### ### Dependencies ###
* **Python 3.6>** * **Python 3.6>**
* requests 2.18.4>
* beautifulsoup 4.6.0> * beautifulsoup 4.6.0>
* aiohttp 3.6.2> * aiohttp 3.6.2>
* lxml 4.2.1> * lxml 4.2.1>

View file

@ -1,4 +1,3 @@
beautifulsoup4 >= 4.6.0; python_version >= '3.6' beautifulsoup4 >= 4.6.0; python_version >= '3.6'
requests >= 2.18.4
aiohttp >= 3.6.2 aiohttp >= 3.6.2
lxml >= 4.2.1 lxml >= 4.2.1

View file

@ -111,10 +111,10 @@ class RcQueue:
all_wikis[db_wiki["wiki"]] = Wiki() all_wikis[db_wiki["wiki"]] = Wiki()
all_wikis[db_wiki["wiki"]].rc_active = db_wiki["rcid"] all_wikis[db_wiki["wiki"]].rc_active = db_wiki["rcid"]
try: try:
self.to_remove.remove(db_wiki["wiki"])
current_domain = self[domain] current_domain = self[domain]
if not db_wiki["ROWID"] < current_domain["last_rowid"]: if not db_wiki["ROWID"] < current_domain["last_rowid"]:
current_domain["query"].append(QueuedWiki(db_wiki["wiki"], 20)) current_domain["query"].append(QueuedWiki(db_wiki["wiki"], 20))
self.to_remove.remove(db_wiki["wiki"])
except KeyError: except KeyError:
await self.start_group(domain, db_wiki) 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...") logger.info("A new domain group has been added since last time, adding it to the domain_list and starting a task...")