Fixed time error

This commit is contained in:
DingZQ
2022-11-19 19:44:35 +08:00
parent c2a62bb297
commit 410f0daca0

View File

@@ -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))