Skip to content
Snippets Groups Projects

Resolve "Parseur par type d'activité"

1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -102,10 +102,10 @@ class Activity:
@@ -102,10 +102,10 @@ class Activity:
self.comment_consigne = comment
self.comment_consigne = comment
case alpha, num:
case alpha, num:
log.warning(
log.warning(
f"No match for comment {alpha}[{num}] ('{comment.id}')"
f"{self.id}: No match for comment {alpha}[{num}] ('{comment.id}')"
)
)
case something:
case something:
log.warning(f"No match for comment '{something}'")
log.warning(f"{self.id}: No match for comment '{something}'")
def get_name(self) -> str:
def get_name(self) -> str:
return type(self).__name__
return type(self).__name__
@@ -228,7 +228,7 @@ class ExerciceQC(Exercice):
@@ -228,7 +228,7 @@ class ExerciceQC(Exercice):
choice.comment = self.comments_sugg.pop(choice.comment.id)
choice.comment = self.comments_sugg.pop(choice.comment.id)
except KeyError:
except KeyError:
log.warning(
log.warning(
f"Choice '{choice.id}' requested comment '{choice.comment.id}', which was not found in HTML."
f"{self.id}: Choice '{choice.id}' requested comment '{choice.comment.id}', which was not found in HTML."
)
)
@override
@override
Loading