Skip to content

Commit 5b29688

Browse files
committed
Updated.
1 parent 2740a33 commit 5b29688

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

html_parsing/get_price_game/from_gog.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def get_games(name: str) -> list[tuple[str, str]]:
2525
data = rs.json()
2626

2727
return [
28-
(game["title"], game["price"]["amount"])
28+
(game["title"], game["price"]["baseAmount"])
2929
for game in data["products"]
3030
]
3131

@@ -37,5 +37,8 @@ def get_games(name: str) -> list[tuple[str, str]]:
3737
print(get_games("Titan Quest: Atlantis"))
3838
# [('Titan Quest: Atlantis', '449')]
3939

40+
print(get_games("Prodeus"))
41+
# [('Prodeus', '465')]
42+
4043
print(get_games("dfsfsdfdsf"))
4144
# []

0 commit comments

Comments
 (0)