refactor: Move maintenance scripts to a dedicated maintenance_scripts/ directory.

This commit is contained in:
kiyreload27
2026-01-05 22:58:22 +00:00
parent 9cbfb29477
commit 40047ee145
19 changed files with 8 additions and 8 deletions

View File

@@ -0,0 +1,24 @@
import sqlite3
import os
DB_PATH = os.path.join("database", "umamusume.db")
def check_offset():
conn = sqlite3.connect(DB_PATH)
cur = conn.cursor()
# Get first 5 SSR cards
cur.execute("SELECT card_id, name, gametora_url FROM support_cards ORDER BY card_id ASC LIMIT 5")
cards = cur.fetchall()
print(f"Cards: {cards}")
# Check if there are events referring to IDs 1, 2, 3...
for i in range(1, 6):
cur.execute("SELECT event_name FROM support_events WHERE card_id = ? LIMIT 1", (i,))
ev = cur.fetchone()
print(f"ID {i} events: {ev}")
conn.close()
if __name__ == "__main__":
check_offset()