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)
|
||||
async def fastapi_run_project(network: str) -> str:
|
||||
global isSimulation
|
||||
if isSimulation:
|
||||
if not isSimulation:
|
||||
result = run_project(network)
|
||||
isSimulation = False
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user