Fixed set junction coords error
This commit is contained in:
2
main.py
2
main.py
@@ -207,7 +207,7 @@ async def fastapi_set_junction_coord(network: str, junction: str, x: float, y: f
|
|||||||
coord['y'] = y
|
coord['y'] = y
|
||||||
props['coord'] = coord
|
props['coord'] = coord
|
||||||
|
|
||||||
return set_junction(network, junction, x, y)
|
return set_junction(network, junction, props)
|
||||||
|
|
||||||
@app.post("/setjunctiondemand/")
|
@app.post("/setjunctiondemand/")
|
||||||
async def fastapi_set_junction_demand(network: str, junction: str, demand: float) -> ChangeSet:
|
async def fastapi_set_junction_demand(network: str, junction: str, demand: float) -> ChangeSet:
|
||||||
|
|||||||
Reference in New Issue
Block a user