def delete_queue(self, chat_id):
with self.connection:
return self.cursor.execute("DELETE FROM `queue` (`chat_id`) VALUES (?)", (chat_id,))
def add_queue(self, chat_id):
with self.connection:
return self.cursor.execute("INSERT INTO `queue` (`chat_id`) VALUES (?)", (chat_id,))
def delete_queue(self, chat_id):
with self.connection:
return self.cursor.execute("DELETE FROM `queue` (`chat_id`) VALUES (?)", (chat_id,))
def delete_queue(self, chat_id):
with self.connection:
return self.cursor.execute("DELETE FROM `queue` WHERE chat_id = ? ", (chat_id,))