Skip to content

Commit

Permalink
Merge pull request #45 from J-Dudek/main
Browse files Browse the repository at this point in the history
Proposition pour bug sur les moyennes
  • Loading branch information
Giga77 authored Oct 17, 2024
2 parents 6829067 + 9e85698 commit 7927520
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions custom_components/ecole_directe/ecole_directe_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,12 +576,12 @@ def get_disciplines_periode(data):
if "disciplines" in data["ensembleMatieres"]:
for discipline_json in data["ensembleMatieres"]["disciplines"]:
discipline = {
"name": discipline_json["discipline"].lower(),
"moyenne": discipline_json["moyenne"],
"moyenneClasse": discipline_json["moyenneClasse"],
"moyenneMin": discipline_json["moyenneMin"],
"moyenneMax": discipline_json["moyenneMax"],
"appreciations":discipline_json["appreciations"],
"name": discipline_json.get("discipline", "").lower(),
"moyenne": discipline_json.get("moyenne", ""),
"moyenneClasse": discipline_json.get("moyenneClasse", ""),
"moyenneMin": discipline_json.get("moyenneMin", ""),
"moyenneMax": discipline_json.get("moyenneMax", ""),
"appreciations": discipline_json.get("appreciations", ""),
}
disciplines.append(discipline)
return disciplines
Expand Down

0 comments on commit 7927520

Please sign in to comment.