mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Fix some accordions
This commit is contained in:
parent
6f3cfd4396
commit
ced8b9a2d0
@ -428,7 +428,10 @@ class IliasPage:
|
|||||||
continue
|
continue
|
||||||
prev: Tag = parent.findPreviousSibling("div")
|
prev: Tag = parent.findPreviousSibling("div")
|
||||||
if "ilContainerBlockHeader" in prev.get("class"):
|
if "ilContainerBlockHeader" in prev.get("class"):
|
||||||
found_titles.append(prev.find("h3").getText().strip())
|
if prev.find("h3"):
|
||||||
|
found_titles.append(prev.find("h3").getText().strip())
|
||||||
|
else:
|
||||||
|
found_titles.append(prev.find("h2").getText().strip())
|
||||||
|
|
||||||
# And this for real accordions
|
# And this for real accordions
|
||||||
if "il_VAccordionContentDef" in parent.get("class"):
|
if "il_VAccordionContentDef" in parent.get("class"):
|
||||||
|
Loading…
Reference in New Issue
Block a user