Skip to content

Commit

Permalink
Merge pull request #25 from apprehensivetarget/patch-1
Browse files Browse the repository at this point in the history
🐛 Fix grades fetch to not just include first semester's grades
  • Loading branch information
drawbu authored Dec 24, 2022
2 parents 97c3bcc + 0b06520 commit ad2adbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drawbot/utils/pronote.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ad2adbb

Please sign in to comment.