await not that cursed
This commit is contained in:
@@ -71,7 +71,7 @@ async def view_doorboy_uids(request):
|
||||
"inventory.owner.username": {"$in": users},
|
||||
}
|
||||
prj = {"token.uid_hash": True}
|
||||
tokens = await request.app.ctx.db.inventory.find(flt, prj)
|
||||
tokens = await request.app.ctx.db.inventory.find(flt, prj).to_list()
|
||||
|
||||
print(f"delegating {len(tokens)} doorkey tokens")
|
||||
return json({"allowed_uids": tokens})
|
||||
|
||||
Reference in New Issue
Block a user