fix
This commit is contained in:
parent
a9d28b18f2
commit
1ff1f30111
5
auth.py
5
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
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user