feat: Implement new database management and scraping utilities, and update application version to 13.0.0.
This commit is contained in:
20
check_event_ids.py
Normal file
20
check_event_ids.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import sqlite3
|
||||
import os
|
||||
|
||||
DB_PATH = os.path.join("database", "umamusume.db")
|
||||
|
||||
def check_event_card_ids():
|
||||
conn = sqlite3.connect(DB_PATH)
|
||||
cur = conn.cursor()
|
||||
|
||||
cur.execute("SELECT DISTINCT card_id FROM support_events LIMIT 20")
|
||||
ids = [row[0] for row in cur.fetchall()]
|
||||
print(f"Distinct card_ids in support_events: {ids}")
|
||||
|
||||
cur.execute("SELECT card_id, name FROM support_cards WHERE card_id IN (1, 2, 3, 4, 5)")
|
||||
print(f"Cards with IDs 1-5: {cur.fetchall()}")
|
||||
|
||||
conn.close()
|
||||
|
||||
if __name__ == "__main__":
|
||||
check_event_card_ids()
|
||||
Reference in New Issue
Block a user