Fixed error of addreservoir
This commit is contained in:
2
main.py
2
main.py
@@ -193,7 +193,7 @@ async def fastapi_set_junction_pattern(network: str, junction: str, pattern: str
|
||||
# reservoir 3.[RESERVOIRS]
|
||||
############################################################
|
||||
|
||||
@app.post("addreservoir/")
|
||||
@app.post("/addreservoir/")
|
||||
async def fastapi_add_reservoir(network: str, reservoir: str, x: float, y: float, head: float) -> ChangeSet:
|
||||
return add_reservoir(network, reservoir, x, y, head)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user