From 634f9da5e8cdf544638b9348643059b35ce64393 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Thu, 1 Jun 2023 20:16:12 +0800 Subject: [PATCH] Update option methods to v3 --- main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 29ae803..004b593 100644 --- a/main.py +++ b/main.py @@ -1340,17 +1340,16 @@ async def fastapi_set_time_properties(network: str, req: Request) -> ChangeSet: ############################################################ @app.get('/getoptionschema/') async def fastapi_get_option_schema(network: str) -> dict[str, dict[str, Any]]: - return get_option_schema(network) + return get_option_v3_schema(network) @app.get("/getoptionproperties/") async def fastapi_get_option_properties(network: str) -> dict[str, Any]: - return get_option(network) + return get_option_v3(network) @app.post("/setoptionproperties/") async def fastapi_set_option_properties(network: str, req: Request) -> ChangeSet: props = await req.json() - return set_option(network, ChangeSet(props)) - + return set_option_v3(network, ChangeSet(props)) ############################################################ # coord 24.[COORDINATES]