Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 31457ca

Browse files
Fix #33 - Aligned request body with website
1 parent 02639a1 commit 31457ca

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

‎howlongtobeatpy/howlongtobeatpy/HTMLRequests.py‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,25 +69,30 @@ def get_search_request_data(game_name: str, search_modifiers: SearchModifiers, p
6969
'min': 0,
7070
'max': 0
7171
},
72+
'gameplay': {
73+
'perspective': "",
74+
'flow': "",
75+
'genre': "",
76+
"subGenre": " "
77+
},
7278
'rangeYear':
7379
{
7480
'max': "",
7581
'min': ""
7682
},
77-
'gameplay': {
78-
'perspective': "",
79-
'flow': "",
80-
'genre': ""
81-
},
8283
'modifier': search_modifiers.value,
8384
},
8485
'users': {
8586
'sortCategory': "postcount"
8687
},
88+
'lists': {
89+
'sortCategory': "follows"
90+
},
8791
'filter': "",
8892
'sort': 0,
8993
'randomizer': 0
90-
}
94+
},
95+
'useCache': True
9196
}
9297

9398
# If api_key is passed add it to the dict

‎howlongtobeatpy/setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
long_description = fh.read()
55

66
setup(name='howlongtobeatpy',
7-
version='1.0.11',
7+
version='1.0.12',
88
packages=find_packages(exclude=['tests']),
99
description='A Python API for How Long to Beat',
1010
long_description=long_description,

‎sonar-project.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ sonar.organization=scrappycocco-github
22
sonar.projectKey=ScrappyCocco_HowLongToBeat-PythonAPI
33

44
sonar.projectName=HowLongToBeat-PythonAPI
5-
sonar.projectVersion=1.0.11
5+
sonar.projectVersion=1.0.12
66
sonar.python.version=3.9
77

88
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /