Reformatted and cleaned up everything

This commit is contained in:
2025-04-16 18:05:07 +02:00
parent e90694f0aa
commit a100324265
9 changed files with 40 additions and 32 deletions

View File

@@ -18,9 +18,7 @@ def migrate_database() -> None:
user_locale = None if "locale" not in keys else keys["locale"]
user_card = None if "card" not in keys else keys["card"]
cursor.execute(
"INSERT INTO users VALUES (?, ?)", (int(user), user_card, user_locale)
)
cursor.execute("INSERT INTO users VALUES (?, ?)", (int(user), user_card, user_locale))
cursor.connection.commit()
rename(Path("data/database.json"), Path("data/database.migrated.json"))