Skip to content

Commit

Permalink
Add interrogation in homework
Browse files Browse the repository at this point in the history
  • Loading branch information
Giga77 committed May 13, 2024
1 parent 4461da5 commit a13c9de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion custom_components/ecole_directe/ecole_directe_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def format_homework(homework):
# "donneLe": homework.donne_le,
# "pourLe": homework.pour_le,
# "effectue": homework.effectue,
# "interrogation": homework.interrogation,
"interrogation": homework.interrogation,
# "rendreEnLigne": homework.rendre_en_ligne,
# "nbJourMaxRenduDevoir": homework.nb_jour_max_rendu_devoir,
}
Expand Down
8 changes: 4 additions & 4 deletions custom_components/ecole_directe/ecole_directe_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ def __init__(self, data, pour_le):
self.effectue = data["effectue"]
else:
self.effectue = ""
# if "interrogation" in data:
# self.interrogation = data["interrogation"]
# else:
# self.interrogation = ""
if "interrogation" in data:
self.interrogation = data["interrogation"]
else:
self.interrogation = ""
# if "rendreEnLigne" in data:
# self.rendre_en_ligne = data["rendreEnLigne"]
# else:
Expand Down

0 comments on commit a13c9de

Please sign in to comment.