feat: Implement new database management and scraping utilities, and update application version to 13.0.0.

This commit is contained in:
kiyreload27
2025-12-31 19:50:14 +00:00
parent d7d1318a55
commit a2ac99e8b6
22 changed files with 812 additions and 32 deletions

24
check_offset.py Normal file
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()