diff --git a/src/utils/reminder.py b/src/utils/reminder.py index e6beeb7..082ebb8 100644 --- a/src/utils/reminder.py +++ b/src/utils/reminder.py @@ -11,7 +11,7 @@ class Reminder(Database): id INTEGER PRIMARY KEY, message_id INTEGER, channel_id INTEGER, - mention_bool INTEGER, + extrarg_id INTEGER, reminder_str TEXT, creation_int INTEGER, expiration_int INTEGER, @@ -25,7 +25,7 @@ class Reminder(Database): """Ajoute un reminder""" requete = """ INSERT INTO reminder ( - message_id, channel_id, mention_bool, reminder_str, creation_int, expiration_int, user_id, guild_id + message_id, channel_id, extrarg_id, reminder_str, creation_int, expiration_int, user_id, guild_id ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ? ); @@ -43,7 +43,7 @@ class Reminder(Database): def listeReminder(self, userID = int, guildID = int): """Retourne la liste des reminders d'un utilisateur""" requete = """ - SELECT reminder_str, creation_int, expiration_int FROM reminder + SELECT reminder_str, creation_int, expiration_int, id FROM reminder WHERE user_id = ? AND guild_id = ? """ return self.affichageResultat(self.requete(requete, [userID, guildID])) @@ -51,7 +51,7 @@ class Reminder(Database): def recuperationExpiration(self, time = int): """Récupère les reminders qui sont arrivés à expiration et ses infos""" requete = """ - SELECT channel_id, mention_bool, reminder_str, creation_int, user_id, id, message_id FROM reminder + SELECT channel_id, extrarg_id, reminder_str, creation_int, user_id, id, message_id FROM reminder WHERE expiration_int < ? """ return self.affichageResultat(self.requete(requete, time))