|
@@ -313,6 +313,6 @@ async def test(request: Request):
|
|
|
|
|
|
@app.get("/api/test2")
|
|
|
async def test2():
|
|
|
- users = ZaneTest.select().where(ZaneTest.a != None)
|
|
|
- users = [__build_user_object(dt) for dt in users]
|
|
|
- return {"message": "Hello World", "users": users}
|
|
|
+ zane_list = ZaneTest.select().where(ZaneTest.a != None)
|
|
|
+ zane_list = [dt.a for dt in zane_list]
|
|
|
+ return {"message": "Hello World", "users": zane_list}
|