Fxied junction error
This commit is contained in:
2
main.py
2
main.py
@@ -164,7 +164,7 @@ async def fast_get_junction_schema(network: str) -> dict[str, dict[str, Any]]:
|
|||||||
|
|
||||||
@app.post("/addjunction/")
|
@app.post("/addjunction/")
|
||||||
async def fastapi_add_junction(network: str, junction: str, x: float, y: float, z: float) -> ChangeSet:
|
async def fastapi_add_junction(network: str, junction: str, x: float, y: float, z: float) -> ChangeSet:
|
||||||
ps = {'id' : network, 'x' : x, 'y' : y, 'elevation' : z}
|
ps = {'id' : junction, 'x' : x, 'y' : y, 'elevation' : z}
|
||||||
return add_junction(network, ChangeSet(ps))
|
return add_junction(network, ChangeSet(ps))
|
||||||
|
|
||||||
@app.post("/deletejunction/")
|
@app.post("/deletejunction/")
|
||||||
|
|||||||
Reference in New Issue
Block a user