File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- from sqlalchemy . orm import load_only , selectinload
1+ from PasarGuardNodeBridge import create_proxy , create_user
22from sqlalchemy import select
3- from PasarGuardNodeBridge import create_user , create_proxy
3+ from sqlalchemy . orm import load_only , selectinload
44
55from app .db import AsyncSession
6- from app .db .models import ProxyInbound , Group , User , UserStatus
6+ from app .db .models import Group , ProxyInbound , User , UserStatus
77
88
99def serialize_user_for_node (id : int , username : str , user_settings : dict , inbounds : list [str ] = None ):
@@ -34,7 +34,7 @@ async def core_users(db: AsyncSession):
3434 selectinload (User .groups ),
3535 selectinload (User .groups ).selectinload (Group .inbounds ).load_only (ProxyInbound .tag ),
3636 )
37- .filter (User .status .in_ ([UserStatus .active , UserStatus .on_hold ]))
37+ .where (User .status .in_ ([UserStatus .active , UserStatus .on_hold ]))
3838 )
3939 users = (await db .execute (stmt )).unique ().scalars ().all ()
4040 bridge_users : list = []
You can’t perform that action at this time.
0 commit comments