mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01:00 
			
		
		
		
	Cleanup db lets create a task instead
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user