Skip to content

Commit 8f00e39

Browse files
authored
Merge pull request #14 from Acuspeedster/main
changed the status json argument
2 parents 5e8866f + 94e1633 commit 8f00e39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ async def compile_and_fix_rust(request: dict):
204204
for filename, content in current_files.items():
205205
output_text += f"[filename: {filename}]\n{content}\n\n"
206206

207-
# Return JSON response instead of plain text
207+
# Replace the existing JSONResponse in the success case with this
208208
return JSONResponse(content={
209-
"status": "success",
209+
"success": True,
210210
"message": "Code fixed and compiled successfully",
211211
"attempts": attempts,
212212
"combined_text": output_text.strip(),
@@ -281,7 +281,7 @@ async def compile_and_fix_rust(request: dict):
281281

282282
# If we've exhausted all attempts, return error
283283
return JSONResponse(content={
284-
"status": "failed",
284+
"success": False,
285285
"message": f"Failed to fix code after {max_attempts} attempts",
286286
"attempts": attempts,
287287
"combined_text": output_text.strip(),

0 commit comments

Comments
 (0)