Ajout du système de sanctions, mise en déploiement pour test à grande échelle
This commit is contained in:
parent
00446c5fb8
commit
dc6e235f27
4 changed files with 369 additions and 27 deletions
16
scratch/check_db.py
Normal file
16
scratch/check_db.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import sqlite3
|
||||
import os
|
||||
|
||||
db_path = "config.db"
|
||||
if os.path.exists(db_path):
|
||||
conn = sqlite3.connect(db_path)
|
||||
cursor = conn.cursor()
|
||||
cursor.execute("SELECT name FROM sqlite_master WHERE type='table';")
|
||||
tables = cursor.fetchall()
|
||||
print(f"Tables: {tables}")
|
||||
for table in tables:
|
||||
cursor.execute(f"PRAGMA table_info({table[0]});")
|
||||
print(f"Schema for {table[0]}: {cursor.fetchall()}")
|
||||
conn.close()
|
||||
else:
|
||||
print("Database not found.")
|
||||
Loading…
Add table
Add a link
Reference in a new issue