diff --git a/main.py b/main.py index 7ea5584..630a079 100644 --- a/main.py +++ b/main.py @@ -1105,6 +1105,7 @@ async def fastapi_get_reaction(network: str) -> dict[str, Any]: return get_reaction(network) @app.post('/setreaction/') +# set_reaction(p, ChangeSet({ 'ORDER BULK' : '10' })) async def fastapi_set_reaction(network: str, req: Request) -> ChangeSet: props = await req.json() return set_reaction(network, ChangeSet(props)) @@ -1176,7 +1177,7 @@ async def fastapi_get_time_properties(network: str) -> dict[str, Any]: return get_time(network) @app.post("/settimeproperties/") -async def fastapi_set_time_properties(network: str, time: str, req: Request) -> ChangeSet: +async def fastapi_set_time_properties(network: str, req: Request) -> ChangeSet: props = await req.json() return set_time(network, ChangeSet(props))