Skip to content
Snippets Groups Projects

Resolve "Parseur par type d'activité"

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -315,7 +315,7 @@ class ExerciceTAT(Exercice):
@@ -315,7 +315,7 @@ class ExerciceTAT(Exercice):
# Avoid adding an empty segment if there are none
# Avoid adding an empty segment if there are none
self.segments.append(text_segment_buf)
self.segments.append(text_segment_buf)
nb_total_gaps = len(container.find_class("STY_selectTAT"))
nb_total_gaps = len(container.cssselect(".STY_selectTAT, .STY_champTAT"))
nb_found_gaps = len([e for e in self.segments if isinstance(e, Gap)])
nb_found_gaps = len([e for e in self.segments if isinstance(e, Gap)])
if nb_found_gaps != nb_total_gaps:
if nb_found_gaps != nb_total_gaps:
log.warning(
log.warning(
Loading