Spaces:
Sleeping
Sleeping
Fedgo29 commited on
Commit ·
fc04bc0
1
Parent(s): 89e8758
Adding changes by Fedgo 24-6-2025 3:27 PM
Browse filesFiles changed (2)
- app.py+2-2
- guardiancare.db+1-1
566 unmodified lines56756856957057057157257339 unmodified lines613614615616616617618619566 unmodified lines
with sqlite3.connect(DATABASE) as conn: cursor = conn.cursor() cursor.execute('''SELECT phone, mail, notifications_enabled FROM contacto where id_usuario = ?''', (id_user,)) cursor.execute('''SELECT numbers, mail, notifications_enabled FROM contacto where usuario_id = ?''', (id_user, )) rows = cursor.fetchall()
if not rows:39 unmodified lines VALUES (?, ?, ?, ?) ON CONFLICT(usuario_id) DO UPDATE SET numbers = excluded.numbers, mail = excluded.email, mail = excluded.mail, notifications_enabled = excluded.notifications_enabled ''', (numbers, email, id_usuario, notification_enabled))
1223version https://git-lfs.github.com/spec/v1oid sha256:395e4f78985b7a61b578b0299e84e06d09c0637884897304b539334b7418a326oid sha256:5e77828de1723ff7e69172ba5672337ab10920379ce9b232abf288425eff90basize 53248app.py+2-2
guardiancare.db+1-1