mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
FIX login check has to be done case insensitive
This commit is contained in:
committed by
Sebastian Thomschke
parent
f1ae6ff8de
commit
09f4d0f16f
@@ -444,7 +444,7 @@ class KleinanzeigenBot(WebScrapingMixin):
|
||||
async def is_logged_in(self) -> bool:
|
||||
try:
|
||||
user_info = await self.web_text(By.ID, "user-email")
|
||||
if self.config['login']['username'] in user_info:
|
||||
if self.config['login']['username'].lower() in user_info.lower():
|
||||
return True
|
||||
except TimeoutError:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user