Skip to content

Commit febeeac

Browse files
authored
Merge pull request #44 from donny-wong/v0.4.0
V0.4.0
2 parents 2f849fb + cbcaaa9 commit febeeac

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
setuptools.setup(
77
name="markusapi",
8-
version="0.3.0",
8+
version="0.4.0",
99
author="Alessio Di Sandro, Misha Schwartz, Sam Maldonado",
1010
author_email="[email protected]",
1111
description="Interface to interact with MarkUs API",
1212
long_description=long_description,
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)