final-vibevault-tests/.autograde/create_minimal_metadata.py

11 lines
282 B
Python
Raw Normal View History

2025-12-23 13:06:56 +08:00
import json
import os
grade_file = "final_grade.json"
if os.path.exists(grade_file):
with open(grade_file) as f:
data = json.load(f)
print(json.dumps({"grade": data.get("total", 0), "status": "graded"}))
else:
print(json.dumps({"grade": 0, "status": "error"}))