mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 23:45:05 +02:00
Fix authenticator and crawler names
Now, the "auth:" and "crawl:" parts are considered part of the name. This fixes crawlers not being able to find their authenticators.
This commit is contained in:
parent
a6fdf05ee9
commit
595de88d96
3 changed files with 10 additions and 12 deletions
|
|
@ -139,19 +139,17 @@ class Config:
|
|||
|
||||
def crawler_sections(self) -> List[Tuple[str, SectionProxy]]:
|
||||
result = []
|
||||
for section_name, section_proxy in self._parser.items():
|
||||
if section_name.startswith("crawler:"):
|
||||
crawler_name = section_name[8:]
|
||||
result.append((crawler_name, section_proxy))
|
||||
for name, proxy in self._parser.items():
|
||||
if name.startswith("crawler:"):
|
||||
result.append((name, proxy))
|
||||
|
||||
return result
|
||||
|
||||
def authenticator_sections(self) -> List[Tuple[str, SectionProxy]]:
|
||||
result = []
|
||||
for section_name, section_proxy in self._parser.items():
|
||||
if section_name.startswith("auth:"):
|
||||
crawler_name = section_name[5:]
|
||||
result.append((crawler_name, section_proxy))
|
||||
for name, proxy in self._parser.items():
|
||||
if name.startswith("auth:"):
|
||||
result.append((name, proxy))
|
||||
|
||||
return result
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue