fix: backfill release years from store dates
CI / test (push) Successful in 4m43s

This commit is contained in:
strsv committed 2026-11-06 20:34:19 +03:00
1 parent db3e6e4f94
commit 2828ec48c8
10 files changed
+124 -11

No files matched your search

+2 -1
View File
@@ -96,7 +96,7 @@ def main():
VALUES (?, ?, ?, ?, ?, ?, ?)
ON CONFLICT(appid) DO UPDATE SET
name = excluded.name, type = excluded.type,
release_date = excluded.release_date,
release_date = COALESCE(excluded.release_date, games.release_date),
metacritic = excluded.metacritic, review_pct = excluded.review_pct,
updated_at = excluded.updated_at""",
row,
@@ -191,6 +191,7 @@ def main():
db.refresh_search_index(con)
db.refresh_duration_estimates(con)
db.backfill_release_dates(con)
counts = {r["type"]: r["n"] for r in con.execute(
"SELECT COALESCE(LOWER(type), 'unknown') AS type, COUNT(*) AS n FROM games GROUP BY 1")}