cxhy 6 mesiacov pred
rodič
commit
6af17de2c1
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      main.py

+ 3 - 3
main.py

@@ -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}