Spaces:
Sleeping
Sleeping
File size: 476 Bytes
9bc686b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import sqlite3
conn = sqlite3.connect('netraid.db')
c = conn.cursor()
c.execute("SELECT name FROM sqlite_master WHERE type='table'")
print('Tables:', c.fetchall())
c.execute("SELECT COUNT(*) FROM face_embeddings")
print('Embeddings:', c.fetchone())
c.execute("SELECT * FROM attendance_logs ORDER BY id DESC LIMIT 10")
print('Attendance logs:', c.fetchall())
c.execute("SELECT * FROM attendance ORDER BY id DESC LIMIT 10")
print('Attendances:', c.fetchall())
conn.close()
|