Files
aza/AzA march 2026 - Kopie (12)/_check_license_debug.py

7 lines
435 B
Python
Raw Normal View History

2026-04-16 13:32:32 +02:00
import sqlite3
db = r"C:\Users\surov\Documents\AZA\backup 24.2.26\data\stripe_webhook.sqlite"
con = sqlite3.connect(db)
print("LATEST_LICENSE_ROW =", con.execute("SELECT status, current_period_end, customer_email, updated_at FROM licenses ORDER BY updated_at DESC LIMIT 1").fetchone())
print("DEVICES_TABLE_EXISTS =", con.execute("SELECT name FROM sqlite_master WHERE type='table' AND name='licensed_devices'").fetchone())
con.close()