Skip to content

Commit

Permalink
fix header images
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfagun74 committed May 9, 2024
1 parent 552d808 commit 6a43ebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def search_steam_games():
"id": game["id"][0],
"slug": clean_string(game["name"]).lower().replace(" ", "-"),
"name": clean_string(game["name"]),
"background_image": f"https://cdn.akamai.steamstatic.com/steam/apps/{game['id'][0]}header.jpg",
"background_image": f"https://cdn.akamai.steamstatic.com/steam/apps/{game['id'][0]}/header.jpg",
"platforms": [{"platform": {"id": 1, "name": "Steam"}}],
"box_art": f"https://steamcdn-a.akamaihd.net/steam/apps/{game['id'][0]}/library_600x900_2x.jpg"
}
Expand Down Expand Up @@ -188,6 +188,6 @@ def log_request(response):
#Migrations
cursor.execute('''DROP TABLE IF EXISTS games''')
cursor.execute('''DROP TABLE IF EXISTS games_v2''')
cursor.execute('''DELETE FROM cache WHERE timestamp < 1715210567''')
cursor.execute('''DELETE FROM cache WHERE timestamp < 1715249693''')
conn.commit()
serve(app, host="0.0.0.0", port=9999)

0 comments on commit 6a43ebf

Please sign in to comment.