deployer %!s(int64=3) %!d(string=hai) anos
pai
achega
b68f512707
Modificáronse 3 ficheiros con 2 adicións e 2 borrados
  1. BIN=BIN
      api/__pycache__/main.cpython-36.pyc
  2. BIN=BIN
      api/__pycache__/models.cpython-36.pyc
  3. 2 2
      api/main.py

BIN=BIN
api/__pycache__/main.cpython-36.pyc


BIN=BIN
api/__pycache__/models.cpython-36.pyc


+ 2 - 2
api/main.py

@@ -233,7 +233,7 @@ async def register_old(request: Request):
         #return templates.TemplateResponse("make_video.html", {"request": request, "success": True},status_code=status.HTTP_302_FOUND)
         #return templates.TemplateResponse("login.html", {'request': request,"success": True}, status_code=status.HTTP_302_FOUND)
     else:
-        return 'msg':{'eng':user.username+' is duplicated user name try another','zh':user.username+'重複,請更改'}}
+        return {'msg':{'eng':user.username+' is duplicated user name try another','zh':user.username+'重複,請更改'}}
 
 @app.post("/register")
 async def register(request: models.register_req):
@@ -250,7 +250,7 @@ async def register(request: models.register_req):
         else :
             return {'msg':'error'}
     else:
-        return 'msg':{'eng':user.username+' is duplicated user name try another','zh':user.username+'重複,請更改'}}
+        return {'msg':{'eng':user.username+' is duplicated user name try another','zh':user.username+'重複,請更改'}}
 
 
 @app.get('/logout')