CoolFace
Apppublic

malepati/custom_template_working

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
get_latest_pid.py16 linesDownload Raw Back to root
1import sqlite32 3db_path = r"c:\Users\DELL\Documents\upgrading\Accusaga_slides_presentation\servers\fastapi\app_data\fastapi.db"4 5conn = sqlite3.connect(db_path)6cursor = conn.cursor()7 8cursor.execute("SELECT id, title, created_at FROM presentations ORDER BY created_at DESC LIMIT 1;")9row = cursor.fetchone()10if row:11    print(f"Latest PID: {row[0]}")12else:13    print("No presentations found.")14 15conn.close()16