Skip to content

Commit 29f8839

Browse files
fix: correct domain from bootcs.cn to bootcs.dev
1 parent e3754aa commit 29f8839

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

bootcs/__main__.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,11 @@ def wait_for_result(submission_id: str, token: str, timeout: int = 60):
527527

528528
try:
529529
result = client.get(f"/api/submissions/{submission_id}")
530+
# DEBUG: Print result type and content
531+
import json
532+
print(f"\nDEBUG result type: {type(result)}")
533+
print(f"DEBUG result: {json.dumps(result, indent=2, default=str)[:500]}")
534+
530535
status = result.get('status')
531536

532537
# Terminal states
@@ -710,7 +715,7 @@ def run_submit(args):
710715
if result.status == "EVALUATING":
711716
print()
712717
termcolor.cprint("💡 Your code is being evaluated. Check results at:", "cyan")
713-
print(f" https://bootcs.cn/submissions/{result.submission_id}")
718+
print(f" https://bootcs.dev/submissions/{result.submission_id}")
714719
return 0
715720

716721
# Wait for evaluation result (polling mode)
@@ -724,7 +729,7 @@ def run_submit(args):
724729
print()
725730
print(" Your submission is still being processed.")
726731
termcolor.cprint(" Check results at:", "cyan")
727-
print(f" https://bootcs.cn/submissions/{result.submission_id}")
732+
print(f" https://bootcs.dev/submissions/{result.submission_id}")
728733
print()
729734
termcolor.cprint(f" Or wait longer with: bootcs submit {slug} --timeout {args.timeout * 2}", "white")
730735
return 0

0 commit comments

Comments
 (0)