Skip to content

Commit

Permalink
chore: fix req.txt and get users
Browse files Browse the repository at this point in the history
  • Loading branch information
erfjab committed Oct 31, 2024
1 parent 1cf68fc commit 57959a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ pydantic==2.8.2
qrcode==7.4.2
aiosqlite==0.20.0
APScheduler==3.10.4
marzban==0.2.6
marzban==0.2.8
pillow==10.4.0
alembic==1.13.1
4 changes: 2 additions & 2 deletions utils/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from db import TokenManager
from utils.log import logger

marzban_panel = MarzbanAPI(MARZBAN_ADDRESS)
marzban_panel = MarzbanAPI(MARZBAN_ADDRESS, timeout=30.0, verify=False)


async def inbounds() -> dict[str, list[ProxyInbound]]:
Expand Down Expand Up @@ -100,7 +100,7 @@ async def get_users(offset: int = 0, limit: int = 50) -> list[UserResponse]:
try:
get_token = await TokenManager.get()
users = await marzban_panel.get_users(
token=get_token.token, offset=offset, limit=offset
token=get_token.token, offset=offset, limit=limit
)
return users.users if users else False
except Exception as e:
Expand Down

0 comments on commit 57959a3

Please sign in to comment.