fix: python code and Laura's container mismatch

This commit is contained in:
2025-05-01 01:45:40 -03:00
parent df6fbbff71
commit da62b2283e
3 changed files with 12 additions and 8 deletions

View File

@ -66,8 +66,13 @@ def audit_submission(round_number: int):
return jsonify({"success": True, "data": {"is_approved": False}}), 200
try:
is_approved = audit_repo(pr_url)
return jsonify({"success": True, "data": {"is_approved": is_approved}}), 200
result = audit_repo(pr_url)
return jsonify(result), 200
except Exception as e:
logger.error(f"Error auditing PR: {str(e)}")
return jsonify({"success": True, "data": {"is_approved": True}}), 200
return jsonify({
"success": False,
"data": {
"error": str(e)
}
}), 500