Fxied junction error

This commit is contained in:
DingZQ
2022-10-15 13:26:46 +08:00
parent 7bf1493a41
commit 9834d2b1ea

View File

@@ -164,7 +164,7 @@ async def fast_get_junction_schema(network: str) -> dict[str, dict[str, Any]]:
@app.post("/addjunction/")
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))
@app.post("/deletejunction/")