diff --git a/app/database.py b/app/database.py index 90c9818..a706d41 100644 --- a/app/database.py +++ b/app/database.py @@ -39,6 +39,9 @@ class Database: result = cursor.fetchall() cursor.close() return result + + def __del__(self): + self.db.close() class User: def __init__(self, user_id, username, nom, prenom, creation_date):