Fixed emitter error

This commit is contained in:
DingZQ
2022-11-26 14:40:12 +08:00
parent 859ad5403c
commit 832e06108b

View File

@@ -1065,7 +1065,7 @@ async def fastapi_get_emitter_properties(network: str, junction: str) -> dict[st
@app.post("/setemitterproperties/")
async def fastapi_set_emitter_properties(network: str, junction: str, req: Request) -> ChangeSet:
props = await req.json()
ps = { 'id' : junction } | props
ps = { 'junction' : junction } | props
return set_emitter(network, ChangeSet(ps))