Merge branch 'main' of ssh://forge.chapril.org:222/jmtrivial/agenda_culturel
This commit is contained in:
commit
2f0c0c6f0b
@ -109,10 +109,11 @@ class CExtractor(TwoStepsExtractor):
|
|||||||
# on ajoute éventuellement les informations complémentaires
|
# on ajoute éventuellement les informations complémentaires
|
||||||
|
|
||||||
d_suite = ""
|
d_suite = ""
|
||||||
for d in ["typedesc", "dureedesc", "lieuspec"]:
|
for d in ["#typespec", "#dureespec", "#lieuspec", ".lkuncontdroitespec"]:
|
||||||
comp_desc = soup.select("#" + d)
|
comp_desc = soup.select(d)
|
||||||
if comp_desc and len(comp_desc) > 0:
|
if comp_desc and len(comp_desc) > 0:
|
||||||
d_suite += "\n\n" + comp_desc[0].get_text()
|
for desc in comp_desc:
|
||||||
|
d_suite += "\n\n" + desc.get_text()
|
||||||
if d_suite != "":
|
if d_suite != "":
|
||||||
description += "\n\n> Informations complémentaires:" + d_suite
|
description += "\n\n> Informations complémentaires:" + d_suite
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user