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)
|
return get_reaction(network)
|
||||||
|
|
||||||
@app.post('/setreaction/')
|
@app.post('/setreaction/')
|
||||||
|
# set_reaction(p, ChangeSet({ 'ORDER BULK' : '10' }))
|
||||||
async def fastapi_set_reaction(network: str, req: Request) -> ChangeSet:
|
async def fastapi_set_reaction(network: str, req: Request) -> ChangeSet:
|
||||||
props = await req.json()
|
props = await req.json()
|
||||||
return set_reaction(network, ChangeSet(props))
|
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)
|
return get_time(network)
|
||||||
|
|
||||||
@app.post("/settimeproperties/")
|
@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()
|
props = await req.json()
|
||||||
return set_time(network, ChangeSet(props))
|
return set_time(network, ChangeSet(props))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user