From 6ae4b78a98311a9e380584e5306c28dfd6a5b3bd Mon Sep 17 00:00:00 2001 From: Project_IO Date: Sun, 15 Sep 2024 17:22:57 +0900 Subject: [PATCH] fix: server payload not applied fixed --- routes/balance.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/routes/balance.py b/routes/balance.py index 111bd29..3de79ab 100644 --- a/routes/balance.py +++ b/routes/balance.py @@ -91,8 +91,6 @@ def find(id, req: Request, resp: Response): def update(id, balance: UpdateForm, req: Request, resp: Response): started = datetime.now().microsecond / 1000 auth = AuthService() - - print(auth.check_auth(req)) if not auth.check_auth(req): resp.status_code = 403 return { @@ -101,11 +99,7 @@ def update(id, balance: UpdateForm, req: Request, resp: Response): } service = BalanceService() - - ok = service.update( - int(id), - UpdateForm(balance.name, balance.date, balance.price, balance.buy, balance.memo) - ) + ok = service.update(int(id), balance) if not ok == 1: resp.status_code = 500