Remove error comparing str and int
Here the elif compares to 0, while username is a string, which causes errors.
This commit is contained in:
parent
ab97b3105b
commit
38923abd3d
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ def authorized() -> typing.Any:
|
|||
# pylint: disable=R1705
|
||||
if username and user:
|
||||
return login_and_redirect_user(user)
|
||||
elif username > 0:
|
||||
elif username:
|
||||
user = create_user(username)
|
||||
return login_and_redirect_user(user)
|
||||
|
||||
|
|
Loading…
Reference in a new issue