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

31
check_counts.py Normal file
View File

@@ -0,0 +1,31 @@
import sqlite3
import os
DB_PATH = os.path.join("database", "umamusume.db")
def check_counts():
conn = sqlite3.connect(DB_PATH)
cur = conn.cursor()
cur.execute("SELECT COUNT(*) FROM support_cards")
print(f"support_cards: {cur.fetchone()[0]}")
cur.execute("SELECT COUNT(*) FROM support_events")
print(f"support_events: {cur.fetchone()[0]}")
cur.execute("SELECT COUNT(*) FROM event_skills")
print(f"event_skills: {cur.fetchone()[0]}")
# Check sample card_id from events
cur.execute("SELECT card_id FROM support_events LIMIT 1")
sample_id = cur.fetchone()
if sample_id:
print(f"Sample card_id from events: {sample_id[0]}")
cur.execute("SELECT name FROM support_cards WHERE card_id = ?", (sample_id[0],))
card_name = cur.fetchone()
print(f"Matching card name: {card_name}")
conn.close()
if __name__ == "__main__":
check_counts()