We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2740a33 commit 5b29688Copy full SHA for 5b29688
html_parsing/get_price_game/from_gog.py
@@ -25,7 +25,7 @@ def get_games(name: str) -> list[tuple[str, str]]:
25
data = rs.json()
26
27
return [
28
- (game["title"], game["price"]["amount"])
+ (game["title"], game["price"]["baseAmount"])
29
for game in data["products"]
30
]
31
@@ -37,5 +37,8 @@ def get_games(name: str) -> list[tuple[str, str]]:
37
print(get_games("Titan Quest: Atlantis"))
38
# [('Titan Quest: Atlantis', '449')]
39
40
+ print(get_games("Prodeus"))
41
+ # [('Prodeus', '465')]
42
+
43
print(get_games("dfsfsdfdsf"))
44
# []
0 commit comments