Fixed time error
This commit is contained in:
3
main.py
3
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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user