mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
Cleanup db move done inside with statement
This commit is contained in:
parent
3ce4a8fe83
commit
4c059c9d42
@ -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)
|
d = session.query(Messages).filter(Messages.guild_id == guild.guild_id, ~Messages.channel_id.in_(active_channels)).delete(synchronize_session=False)
|
||||||
session.commit()
|
session.commit()
|
||||||
self.logger.info(" INACTIVE {}".format(d))
|
self.logger.info(" INACTIVE {}".format(d))
|
||||||
self.logger.info("done!")
|
self.logger.info("done!")
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
print("Starting...")
|
print("Starting...")
|
||||||
|
Loading…
Reference in New Issue
Block a user