mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-10-26 10:32:30 +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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user