CoolFace
Apppublic

malepati/custom_template_working

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
check_container.py25 linesDownload Raw Back to root
1import sqlite32 3db_path = r"c:\Users\DELL\Documents\upgrading\Accusaga_slides_presentation\servers\fastapi\app_data\container.db"4target_id = "0e56f149-122d-4a02-a5b9-c8046b453c59"5 6conn = sqlite3.connect(db_path)7cursor = conn.cursor()8 9try:10    cursor.execute("SELECT name FROM sqlite_master WHERE type='table';")11    tables = cursor.fetchall()12    print(f"Tables in container.db: {tables}")13 14    cursor.execute("SELECT * FROM templates WHERE id = ?", (target_id,))15    template = cursor.fetchone()16    print(f"Template Meta: {template}")17 18    cursor.execute("SELECT layout_id, layout_name FROM presentation_layout_codes WHERE presentation = ?", (target_id,))19    layouts = cursor.fetchall()20    print(f"Layouts found: {len(layouts)}")21except Exception as e:22    print(f"Error: {e}")23 24conn.close()25