From 088da3f50e00fe68d590c8ce2da516715b0b0eb8 Mon Sep 17 00:00:00 2001 From: Daniel Gawne <30755402+dgwn@users.noreply.github.com> Date: Thu, 12 Mar 2026 10:40:31 -0500 Subject: [PATCH 1/2] fix QuizGroup's course_id --- AUTHORS.md | 2 ++ CHANGELOG.md | 4 ++++ canvasapi/quiz.py | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/AUTHORS.md b/AUTHORS.md index 7df4e013..7345e43c 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -32,12 +32,14 @@ - Caitlin Fabian [@Caitlin-Fabian](https://github.com/Caitlin-Fabian) - Cameron Cuff [@ctcuff](https://github.com/ctcuff) - Catherine Abbruzzese [@cat0698](https://github.com/cat0698) +- Christopher Nitta [@cjnitta](https://github.com/cjnitta) - Craig Thompson [@craigdsthompson](https://github.com/craigdsthompson) - Dalton Durst [@UniversalSuperBox](https://github.com/UniversalSuperBox) - Damian Sweeney [@damianfs](https://github.com/damianfs) - Daniel Bosk [@dbosk](https://github.com/dbosk) - Daniel Brinkman [@DanBrink91](https://github.com/DanBrink91) - Daniel Grobani [@dgrobani](https://github.com/dgrobani) +- Daniel Gawne [@dgwn](https://github.com/dgwn) - Daniel Molares [@dmols](https://github.com/dmols) - David Warden [@dfwarden](https://github.com/dfwarden) - Davis Goff [@Goff-Davis](https://github.com/Goff-Davis) diff --git a/CHANGELOG.md b/CHANGELOG.md index f10175b1..4656a595 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ - Updated `RateLimitExceeded` exception to trigger on HTTP 429 instead of old 403. - Add a default User-Agent header +### Bugfixes + +- `QuizGroup` fixed to have `course_id` of the quiz's `course_id`, instead of the `quiz_id` + ## [3.4.0] - 2025-11-10 ### New Endpoint Coverage diff --git a/canvasapi/quiz.py b/canvasapi/quiz.py index 1602fb0f..41ed481b 100644 --- a/canvasapi/quiz.py +++ b/canvasapi/quiz.py @@ -112,7 +112,7 @@ def create_question_group(self, quiz_groups, **kwargs): ) response_json = response.json() - response_json["quiz_groups"][0].update({"course_id": self.id}) + response_json["quiz_groups"][0].update({"course_id": self.course_id}) return QuizGroup(self._requester, response_json.get("quiz_groups")[0]) From 1cbfa6631b33df3d705d3fe30e867bbb253fb3c9 Mon Sep 17 00:00:00 2001 From: Matthew Emond Date: Thu, 12 Mar 2026 11:51:00 -0400 Subject: [PATCH 2/2] Add attribution to changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4656a595..37158df2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ ### Bugfixes -- `QuizGroup` fixed to have `course_id` of the quiz's `course_id`, instead of the `quiz_id` +- `QuizGroup` fixed to have `course_id` of the quiz's `course_id`, instead of the `quiz_id` (Thanks, [@cjnitta](https://github.com/cjnitta) and [@dgwn](https://github.com/dgwn)) ## [3.4.0] - 2025-11-10