This commit is contained in:
1 parent
db3e6e4f94
commit
2828ec48c8
10 files changed
+124
-11
No files matched your search
@@ -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")}
|
||||
|
||||
Reference in new issue
Block a user