From 0b065209b897dae30f1e2a4133404622fc9a5a4d Mon Sep 17 00:00:00 2001 From: apprehensivetarget <68514504+apprehensivetarget@users.noreply.github.com> Date: Sat, 24 Dec 2022 00:04:27 +0100 Subject: [PATCH] Update pronote.py --- drawbot/utils/pronote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drawbot/utils/pronote.py b/drawbot/utils/pronote.py index 01a685f..090afbd 100644 --- a/drawbot/utils/pronote.py +++ b/drawbot/utils/pronote.py @@ -22,7 +22,7 @@ def fetch_homeworks(pronote_client: pronotepy.Client) -> Optional[Generator]: def fetch_grades(pronote_client: pronotepy.Client) -> Optional[Generator]: - fetched_grades = pronote_client.periods[0].grades + fetched_grades = pronote_client.current_period.grades grades: DefaultDict[str, list] = defaultdict(list) for g in fetched_grades: