Try sorting IGDB results by ID

This commit is contained in:
2023-12-23 15:36:17 -05:00
parent 2293c839e8
commit 9349009ffa

View File

@ -72,7 +72,7 @@ def lookup_game_from_igdb(name_or_igdb_id: str) -> Dict:
fields = "id,name,alternative_names.*,genres.*,release_dates.*,cover.*,screenshots.*,rating,rating_count,summary"
game_dict = {}
body = f"fields {fields}; where id = {igdb_id};"
body = f"fields {fields}; where id = {igdb_id}; sort id asc;"
response = requests.post(GAMES_URL, data=body, headers=headers)
results = json.loads(response.content)
if not results: