mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Close db
This commit is contained in:
parent
1f2fae3da9
commit
e82d985d8f
|
@ -384,6 +384,7 @@ async def discussion_handler():
|
||||||
|
|
||||||
def shutdown(loop, signal=None):
|
def shutdown(loop, signal=None):
|
||||||
DBHandler.update_db()
|
DBHandler.update_db()
|
||||||
|
db_cursor.close()
|
||||||
if len(messagequeue) > 0:
|
if len(messagequeue) > 0:
|
||||||
logger.warning("Some messages are still queued!")
|
logger.warning("Some messages are still queued!")
|
||||||
for task in asyncio.all_tasks(loop):
|
for task in asyncio.all_tasks(loop):
|
||||||
|
|
|
@ -194,7 +194,6 @@ async def essential_info(change: dict, changed_categories, local_wiki: Wiki, tar
|
||||||
rate_limiter: RateLimiter):
|
rate_limiter: RateLimiter):
|
||||||
"""Prepares essential information for both embed and compact message format."""
|
"""Prepares essential information for both embed and compact message format."""
|
||||||
_ = langs[target[0][0]]["wiki"].gettext
|
_ = langs[target[0][0]]["wiki"].gettext
|
||||||
# recent_changes = RecentChangesClass() # TODO Look into replacing RecentChangesClass with local_wiki
|
|
||||||
changed_categories = changed_categories.get(change["revid"], None)
|
changed_categories = changed_categories.get(change["revid"], None)
|
||||||
logger.debug("List of categories in essential_info: {}".format(changed_categories))
|
logger.debug("List of categories in essential_info: {}".format(changed_categories))
|
||||||
appearance_mode = embed_formatter if target[0][1] > 0 else compact_formatter
|
appearance_mode = embed_formatter if target[0][1] > 0 else compact_formatter
|
||||||
|
|
Loading…
Reference in a new issue