mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 06:27:03 +01:00
Cleanup db lets create a task instead
This commit is contained in:
parent
4c059c9d42
commit
316e95a103
@ -86,9 +86,9 @@ class Titan(discord.AutoShardedClient):
|
|||||||
return
|
return
|
||||||
|
|
||||||
print("working on this...")
|
print("working on this...")
|
||||||
self.loop.run_in_executor(None, self.start_cleanup)
|
self.loop.create_task(self.start_cleanup())
|
||||||
|
|
||||||
def start_cleanup(self):
|
async def start_cleanup(self):
|
||||||
with self.database.get_session() as session:
|
with self.database.get_session() as session:
|
||||||
guilds = session.query(Guilds).all()
|
guilds = session.query(Guilds).all()
|
||||||
count = 0
|
count = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user