Change id to link

This commit is contained in:
DingZQ
2022-11-12 19:34:37 +08:00
parent e5c5f6a1e5
commit f7dea58cbe

View File

@@ -894,7 +894,7 @@ async def fastapi_get_status(network: str, link: str) -> dict[str, Any]:
@app.post("/setstatus/")
async def fastapi_set_status_properties(network: str, link: str, req: Request) -> ChangeSet:
props = await req.json()
ps = { 'id' : link } | props
ps = { 'link' : link } | props
return set_status(network, ChangeSet(ps))
############################################################