From 1ff1f30111c6d8e4190a48099a6bf9b2d5f08406fc4bebb9894791782774d54f Mon Sep 17 00:00:00 2001 From: Vladislav Date: Mon, 20 Jul 2026 21:17:06 -0400 Subject: [PATCH] fix --- auth.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/auth.py b/auth.py index a1efc47..64b2434 100644 --- a/auth.py +++ b/auth.py @@ -275,12 +275,9 @@ async def get_user_details(access: str, scopes, response: Response, request: Req async def _build_user(user, request: Request): await notify_collection.update_one({'link':str(request.url).replace(str(request.base_url),'/')},{'$set':{'read':False}}) - notify = [] if (read_id:=request.cookies.get('read')): print(read_id) - async for doc in notify_collection.find({'user_id':user['id']}).limit(100): - notify.append(doc) - user['notify'] = notify + user['notify'] = await notify_collection.find({'user_id':user['id']}).limit(128).to_list() return user