feat: Implement new database management and scraping utilities, and update application version to 13.0.0.
This commit is contained in:
19
check_seed_db.py
Normal file
19
check_seed_db.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import sqlite3
|
||||
import os
|
||||
|
||||
DB_PATH = os.path.join("database", "umamusume_seed.db")
|
||||
|
||||
def check_seed_db():
|
||||
if not os.path.exists(DB_PATH):
|
||||
print("Seed DB not found")
|
||||
return
|
||||
conn = sqlite3.connect(DB_PATH)
|
||||
cur = conn.cursor()
|
||||
cur.execute("SELECT MIN(card_id), MAX(card_id) FROM support_cards")
|
||||
print(f"Seed support_cards range: {cur.fetchone()}")
|
||||
cur.execute("SELECT MIN(card_id), MAX(card_id) FROM support_events")
|
||||
print(f"Seed support_events range: {cur.fetchone()}")
|
||||
conn.close()
|
||||
|
||||
if __name__ == "__main__":
|
||||
check_seed_db()
|
||||
Reference in New Issue
Block a user