add fidelity card module

This commit is contained in:
2025-11-02 18:03:19 +02:00
parent ee4913487a
commit 4fe190ddad
7 changed files with 539 additions and 75 deletions

View File

@@ -86,6 +86,15 @@ class Orders:
''', (status, id))
conn.commit()
def update_order_user_id(self, user_id, id):
with sqlite3.connect(self.db_path) as conn:
cursor = conn.cursor()
cursor.execute('''
UPDATE orders SET user_id = ?
WHERE id = ?
''', (user_id, id))
conn.commit()
def get_order_products(self, id):
with sqlite3.connect(self.db_path) as conn:
cursor = conn.cursor()