mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Hack in support for TI exams
This just adds an additional crawl check for AlteKlausuren. This is not present on the root site but at the suffix `/Klausuren`. Example config: ```py # The "Klausur" needs to be copied verbatim! ti.synchronize("Klausur", "sync dir name", transform=ro_19_klausur_transform, filter=ro_19_klausur_filter) ```
This commit is contained in:
parent
4a5600d5ce
commit
bf8b3cf9f7
@ -67,6 +67,9 @@ class Ti:
|
||||
if soup.find(href="./Tutorien/Tutorien.php"):
|
||||
logger.info("Found Tutorien/")
|
||||
available["Tutorien"] = "/Tutorien/"
|
||||
if soup.find(href="./AlteKlausuren/AlteKlausuren.php"):
|
||||
logger.info("Found AlteKlausuren/")
|
||||
available["AltKlausuren"] = "/AlteKlausuren/"
|
||||
|
||||
return available
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user