From 4c059c9d4208cbd2e18f54973ff2b8a71eb4929b Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Mon, 25 Jun 2018 06:59:47 +0000 Subject: [PATCH] Cleanup db move done inside with statement --- discordbot/cleanup_db_messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordbot/cleanup_db_messages.py b/discordbot/cleanup_db_messages.py index 48039d3..aa13dae 100644 --- a/discordbot/cleanup_db_messages.py +++ b/discordbot/cleanup_db_messages.py @@ -110,7 +110,7 @@ class Titan(discord.AutoShardedClient): d = session.query(Messages).filter(Messages.guild_id == guild.guild_id, ~Messages.channel_id.in_(active_channels)).delete(synchronize_session=False) session.commit() self.logger.info(" INACTIVE {}".format(d)) - self.logger.info("done!") + self.logger.info("done!") def main(): print("Starting...")