From 6eb4b34de0941d13119d7e49cc695139331f1645 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Tue, 18 Apr 2023 23:29:40 +0800 Subject: [PATCH] Refine --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index da75d77..5811ce4 100644 --- a/main.py +++ b/main.py @@ -1041,11 +1041,10 @@ async def fastapi_get_curve_schema(network: str) -> dict[str, dict[str, Any]]: return get_curve_schema(network) @app.post("/addcurve/") -async def fastapi_add_curve(network: str, curve: str, c_type: str, req: Request) -> ChangeSet: +async def fastapi_add_curve(network: str, curve: str, req: Request) -> ChangeSet: props = await req.json() ps = { 'id' : curve, - 'c_type': c_type } | props return add_curve(network, ChangeSet(ps))