feat: add optional HLTB enrichment
CI / test (push) Successful in 7m10s

This commit is contained in:
strsv committed 2026-11-06 22:16:27 +03:00
1 parent b865a4a389
commit d07dec5e75
19 files changed
+258 -23

No files matched your search

+14 -1
View File
@@ -8,7 +8,7 @@ from datetime import datetime, timezone
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DEFAULT_DB = os.path.join(BASE_DIR, "steam.db")
SCHEMA_PATH = os.path.join(BASE_DIR, "tools", "schema.sql")
SCHEMA_VERSION = 5
SCHEMA_VERSION = 6
MOOD_PRESETS = {
"adventure-rpg-party": {
@@ -550,12 +550,25 @@ def _migration_5(con):
backfill_release_dates(con)
def _migration_6(con):
"""Add optional HowLongToBeat columns."""
for column, declaration in (
("hltb_main", "REAL"),
("hltb_extra", "REAL"),
("hltb_complete", "REAL"),
("hltb_id", "INTEGER"),
("hltb_updated_at", "TEXT"),
):
_ensure_column(con, "games", column, declaration)
MIGRATIONS = {
1: _migration_1,
2: _migration_2,
3: _migration_3,
4: _migration_4,
5: _migration_5,
6: _migration_6,
}