refactor: Move maintenance scripts to a dedicated maintenance_scripts/ directory.
This commit is contained in:
24
maintenance_scripts/check_offset.py
Normal file
24
maintenance_scripts/check_offset.py
Normal 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()
|
||||
Reference in New Issue
Block a user