Refine setnodeproperties
This commit is contained in:
3
main.py
3
main.py
@@ -1084,8 +1084,7 @@ async def fastapi_get_quality_properties(network: str, node: str) -> dict[str, A
|
|||||||
@app.post("/setqualityproperties/")
|
@app.post("/setqualityproperties/")
|
||||||
async def fastapi_set_quality_properties(network: str, req: Request) -> ChangeSet:
|
async def fastapi_set_quality_properties(network: str, req: Request) -> ChangeSet:
|
||||||
props = await req.json()
|
props = await req.json()
|
||||||
ps = { 'id' : network} | props
|
return set_quality(network, ChangeSet(props))
|
||||||
return set_quality(network, ChangeSet(ps))
|
|
||||||
|
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user