Cleanup db move done inside with statement

This commit is contained in:
Jeremy Zhang 2018-06-25 06:59:47 +00:00
parent 3ce4a8fe83
commit 4c059c9d42

View File

@ -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...")