Skip to content

Commit

Permalink
Remove debug statement
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-zenk committed Jun 15, 2024
1 parent 87b372c commit 0abd548
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions onboardapis/train/de/db/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,5 @@ def disable(self) -> None:
def is_enabled(self) -> bool:
"""WIP: does not work reliably yet"""
response = self._api.get('/auth/login.php')
from pathlib import Path
Path('latest-web-page.html').write_bytes(response.content)
soup = BeautifulSoup(response.text, 'html.parser')
return soup.select_one('[href*="/logoff"]') is not None

0 comments on commit 0abd548

Please sign in to comment.