Skip to content

Commit 9cc5e61

Browse files
author
Donny Wong
committed
Merge branch 'master' into v0.4.0
2 parents 2f849fb + aae8ea3 commit 9cc5e61

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [0.4.0]
4+
- Fixed bug preventing creating/updating marks spreadsheets with nested grade items (#40)
5+
- Upgrade requests package (#43)
6+
37
## [v0.3.0]
48
- Update routes to conform with MarkUs version 2.0+ (#35)
59
- Fixed bug where request errors were being hidden by json parsing errors (#34)

markusapi/markusapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def new_marks_spreadsheet(
208208
"show_total": show_total,
209209
"grade_entry_items": grade_entry_items,
210210
}
211-
return requests.post(self._url(f"courses/{course_id}/grade_entry_forms"), params=params, headers=self._auth_header)
211+
return requests.post(self._url(f"courses/{course_id}/grade_entry_forms"), json=params, headers=self._auth_header)
212212

213213
@parse_response("json")
214214
def update_marks_spreadsheet(
@@ -237,7 +237,7 @@ def update_marks_spreadsheet(
237237
for name in list(params):
238238
if params[name] is None:
239239
params.pop(name)
240-
return requests.put(self._url(f"courses/{course_id}/grade_entry_forms/{spreadsheet_id}"), params=params, headers=self._auth_header)
240+
return requests.put(self._url(f"courses/{course_id}/grade_entry_forms/{spreadsheet_id}"), json=params, headers=self._auth_header)
241241

242242
@parse_response("json")
243243
def update_marks_spreadsheets_grades(

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
long_description_content_type="text/markdown",
1414
url="https://github.com/MarkUsProject/markus-api",
1515
packages=setuptools.find_packages(),
16-
install_requires=["requests==2.24.0"],
16+
install_requires=["requests==2.32.5"],
1717
tests_require=["pytest==5.3.1"],
1818
setup_requires=["pytest-runner"],
1919
classifiers=[

0 commit comments

Comments
 (0)