Skip to content

Commit

Permalink
feat(ver): v0.1.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Dec 14, 2024
1 parent 7f03b16 commit e818208
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "nekobox"
version = "0.1.3"
version = "0.1.4"
description = "A Satori backend powered by lagrange-python"
authors = [
{name = "wyapx", email = "[email protected]"},
Expand Down
2 changes: 1 addition & 1 deletion src/nekobox/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .main import NekoBoxAdapter as NekoBoxAdapter

__version__ = "0.1.2"
__version__ = "0.1.4"
16 changes: 8 additions & 8 deletions src/nekobox/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ async def login_get(request: Request):
logins = await self.get_logins()
return logins[0]

patch_logging(self.log_level)

async with self.stage("preparing"):
client.connect()
success = True
Expand All @@ -216,14 +218,12 @@ async def login_get(request: Request):
success = await client.easy_login()
else:
success = False

patch_logging(self.log_level)
if not success:
if not await self.qrlogin(client):
logger.error("login error")
else:
await self.client.register()
success = True
if not success:
if not await self.qrlogin(client):
logger.error("login error")
else:
await self.client.register()
success = True

async with self.stage("blocking"):
if success:
Expand Down

0 comments on commit e818208

Please sign in to comment.