Actualiser cogs/database.py

This commit is contained in:
Tenzing Kandang 2026-05-02 23:29:39 +02:00
parent 962bcee4cc
commit bab9621d58

View File

@ -1,5 +1,7 @@
import sqlite3 import sqlite3
#Ce fichier python crée deux fichier database, un user location et un task completed.
#Dedans un tableau est crée en SQLite, user location enregistre la localisation tapé par l'utilisateur, et task completed ajoute une ligne à chaque fois un utilisateur marque une tâche comme "complété".
class UserLocation: class UserLocation:
def __init__(self, db_name='users_location.db'): def __init__(self, db_name='users_location.db'):
self.db_name = db_name self.db_name = db_name