Docker and more calendar work
This commit is contained in:
parent
4527504c80
commit
f7a919ebf2
22 changed files with 2036 additions and 79 deletions
26
check_db.py
Normal file
26
check_db.py
Normal file
|
@ -0,0 +1,26 @@
|
|||
"""
|
||||
Script to check the structure of the settings table in the database.
|
||||
"""
|
||||
import sqlite3
|
||||
import os
|
||||
|
||||
# Get the database path
|
||||
db_path = os.path.join(os.path.dirname(__file__), 'instance', 'podcastrr.db')
|
||||
print(f"Database path: {db_path}")
|
||||
|
||||
# Connect to the database
|
||||
conn = sqlite3.connect(db_path)
|
||||
cursor = conn.cursor()
|
||||
|
||||
# Check the structure of the settings table
|
||||
print("Checking settings table structure...")
|
||||
cursor.execute("PRAGMA table_info(settings)")
|
||||
columns = cursor.fetchall()
|
||||
|
||||
# Print the columns
|
||||
print("Settings table columns:")
|
||||
for column in columns:
|
||||
print(f" {column[1]} ({column[2]})")
|
||||
|
||||
# Close the connection
|
||||
conn.close()
|
Loading…
Add table
Add a link
Reference in a new issue