Fixed emitter error
This commit is contained in:
2
main.py
2
main.py
@@ -1065,7 +1065,7 @@ async def fastapi_get_emitter_properties(network: str, junction: str) -> dict[st
|
|||||||
@app.post("/setemitterproperties/")
|
@app.post("/setemitterproperties/")
|
||||||
async def fastapi_set_emitter_properties(network: str, junction: str, req: Request) -> ChangeSet:
|
async def fastapi_set_emitter_properties(network: str, junction: str, req: Request) -> ChangeSet:
|
||||||
props = await req.json()
|
props = await req.json()
|
||||||
ps = { 'id' : junction } | props
|
ps = { 'junction' : junction } | props
|
||||||
return set_emitter(network, ChangeSet(ps))
|
return set_emitter(network, ChangeSet(ps))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user