Refine setnodeproperties

This commit is contained in:
DingZQ
2022-11-25 20:33:12 +08:00
parent 9396b58638
commit 0a0e71b429

View File

@@ -1084,8 +1084,7 @@ async def fastapi_get_quality_properties(network: str, node: str) -> dict[str, A
@app.post("/setqualityproperties/")
async def fastapi_set_quality_properties(network: str, req: Request) -> ChangeSet:
props = await req.json()
ps = { 'id' : network} | props
return set_quality(network, ChangeSet(ps))
return set_quality(network, ChangeSet(props))
############################################################