mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 06:27:03 +01:00
cleanup db message fix, guild_id
This commit is contained in:
parent
f46d33c943
commit
fd5a851d2a
@ -89,7 +89,7 @@ class Titan(discord.Client):
|
|||||||
d = session.query(Messages).filter(Messages.channel_id == chanid, ~Messages.id.in_(keep_these)).delete(synchronize_session=False)
|
d = session.query(Messages).filter(Messages.channel_id == chanid, ~Messages.id.in_(keep_these)).delete(synchronize_session=False)
|
||||||
session.commit()
|
session.commit()
|
||||||
print(" --{} [{}]".format(channel["name"], d))
|
print(" --{} [{}]".format(channel["name"], d))
|
||||||
d = session.query(Messages).filter(Messages.guild_id == 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()
|
||||||
print(" INACTIVE {}".format(d))
|
print(" INACTIVE {}".format(d))
|
||||||
print("done!")
|
print("done!")
|
||||||
|
Loading…
Reference in New Issue
Block a user