撤销上一个提交
This commit is contained in:
@@ -22,7 +22,7 @@ async def fastapi_get_demand_properties(network: str, junction: str) -> dict[str
|
||||
@router.post("/setdemandproperties/", response_model=None)
|
||||
async def fastapi_set_demand_properties(
|
||||
network: str, junction: str, req: Request
|
||||
) -> "ChangeSet":
|
||||
) -> ChangeSet:
|
||||
props = await req.json()
|
||||
ps = {"junction": junction} | props
|
||||
return set_demand(network, ChangeSet(ps))
|
||||
|
||||
Reference in New Issue
Block a user