remove round Number check in the Python part

This commit is contained in:
2025-05-01 15:27:01 -03:00
parent c58b868d1f
commit f5a02bc002

View File

@ -21,7 +21,7 @@ def audit_submission(round_number: int):
400, 400,
) )
submission_round_number = submission.get("roundNumber") # submission_round_number = submission.get("roundNumber")
task_id = submission.get("taskId") task_id = submission.get("taskId")
pr_url = submission.get("prUrl") pr_url = submission.get("prUrl")
github_username = submission.get("githubUsername") github_username = submission.get("githubUsername")
@ -37,11 +37,11 @@ def audit_submission(round_number: int):
400, 400,
) )
print(f"Repo owner: {repo_owner}, Repo name: {repo_name}") print(f"Repo owner: {repo_owner}, Repo name: {repo_name}")
if int(round_number) != submission_round_number: # if int(round_number) != submission_round_number:
return ( # return (
jsonify({"success": False, "data": {"error": "Round number mismatch"}}), # jsonify({"success": False, "data": {"error": "Round number mismatch"}}),
400, # 400,
) # )
if ( if (
not task_id not task_id