mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 07:25:04 +02:00
Fix CONFIG.md and change elif to if
This commit is contained in:
parent
79bfaa2556
commit
a1101e9126
2 changed files with 3 additions and 3 deletions
|
|
@ -184,8 +184,8 @@ If the values work, feel free to submit a PR and add them to the table above.
|
|||
- `login_type`: How you authenticate. (Required)
|
||||
- `local`: Use `client_id` for authentication.
|
||||
- `shibboleth`: Use shibboleth for authentication.
|
||||
- `client_id`: An ID used for authentication if `client_type` is `local`.
|
||||
Is ignored if `client_type` is `shibboleth`.
|
||||
- `client_id`: An ID used for authentication if `login_type` is `local`. Is
|
||||
ignored if `login_type` is `shibboleth`.
|
||||
- `target`: The ILIAS element to crawl. (Required)
|
||||
- `desktop`: Crawl your personal desktop / dashboard
|
||||
- `<course id>`: Crawl the course with the given id
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ class IliasWebCrawlerSection(HttpCrawlerSection):
|
|||
self.missing_value("login_type")
|
||||
if login_type == "shibboleth":
|
||||
return "shibboleth"
|
||||
elif login_type == "local":
|
||||
if login_type == "local":
|
||||
client_id = self.s.get("client_id")
|
||||
if not client_id:
|
||||
self.missing_value("client_id")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue