mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 23:45:05 +02:00
Fix some accordions
This commit is contained in:
parent
6f3cfd4396
commit
ced8b9a2d0
1 changed files with 4 additions and 1 deletions
|
|
@ -428,7 +428,10 @@ class IliasPage:
|
|||
continue
|
||||
prev: Tag = parent.findPreviousSibling("div")
|
||||
if "ilContainerBlockHeader" in prev.get("class"):
|
||||
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
|
||||
if "il_VAccordionContentDef" in parent.get("class"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue