[O] Shorten
This commit is contained in:
+1
-2
@@ -77,11 +77,10 @@ async def solve(request: Request):
|
|||||||
tf.write_text(body)
|
tf.write_text(body)
|
||||||
|
|
||||||
# Run the solver asynchronously with a 60-second timeout
|
# Run the solver asynchronously with a 60-second timeout
|
||||||
solver_path = src / "slsolver"
|
|
||||||
try:
|
try:
|
||||||
# Create subprocess asynchronously
|
# Create subprocess asynchronously
|
||||||
process = await asyncio.create_subprocess_exec(
|
process = await asyncio.create_subprocess_exec(
|
||||||
str(solver_path),
|
str(src / "slsolver"),
|
||||||
str(tf),
|
str(tf),
|
||||||
cwd=str(src),
|
cwd=str(src),
|
||||||
stdout=asyncio.subprocess.PIPE,
|
stdout=asyncio.subprocess.PIPE,
|
||||||
|
|||||||
Reference in New Issue
Block a user