Refine
This commit is contained in:
2
main.py
2
main.py
@@ -150,7 +150,7 @@ async def fastapi_dump_inp(network: str, inp: str) -> bool:
|
|||||||
@app.get("/runproject/", response_class = PlainTextResponse)
|
@app.get("/runproject/", response_class = PlainTextResponse)
|
||||||
async def fastapi_run_project(network: str) -> str:
|
async def fastapi_run_project(network: str) -> str:
|
||||||
global isSimulation
|
global isSimulation
|
||||||
if isSimulation:
|
if not isSimulation:
|
||||||
result = run_project(network)
|
result = run_project(network)
|
||||||
isSimulation = False
|
isSimulation = False
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user