Change id to link
This commit is contained in:
2
main.py
2
main.py
@@ -894,7 +894,7 @@ async def fastapi_get_status(network: str, link: str) -> dict[str, Any]:
|
|||||||
@app.post("/setstatus/")
|
@app.post("/setstatus/")
|
||||||
async def fastapi_set_status_properties(network: str, link: str, req: Request) -> ChangeSet:
|
async def fastapi_set_status_properties(network: str, link: str, req: Request) -> ChangeSet:
|
||||||
props = await req.json()
|
props = await req.json()
|
||||||
ps = { 'id' : link } | props
|
ps = { 'link' : link } | props
|
||||||
return set_status(network, ChangeSet(ps))
|
return set_status(network, ChangeSet(ps))
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user