async def CleanDBTables(self): while True: for table in {'dnsproxy', 'ipproxy', 'ips', 'infectedclients'}: Database = DBConnector(table) Database.Connect() Database.Cleaner(self.log_length) Database.Disconnect() #running on system startup and every 24 hours thereafter await asyncio.sleep(EXTRA_LONG_TIMER)
def ProxyDB(self): for table in {'DNSProxy', 'PIHosts'}: ProxyDB = DBConnector(table) ProxyDB.Connect() ProxyDB.Cleaner() ProxyDB.Disconnect()
def ProxyDB(self): ProxyDB = DBConnector(table='FWBlocks') ProxyDB.Connect() ProxyDB.Cleaner() ProxyDB.Disconnect()
def ProxyDB(self): ProxyDB = DBConnector(table='IPS') ProxyDB.Connect() ProxyDB.Cleaner() ProxyDB.Disconnect()