Verified Commit fbe0c0bb authored by Peter Stanko's avatar Peter Stanko
Browse files

Submission source

parent 8f26714f
...@@ -270,6 +270,7 @@ class SubmissionSchema(BaseSchema, Schema): ...@@ -270,6 +270,7 @@ class SubmissionSchema(BaseSchema, Schema):
user = NESTED['user'] user = NESTED['user']
points = fields.Number() points = fields.Number()
result = fields.Str(allow_none=True) result = fields.Str(allow_none=True)
source_hash = fields.Str(allow_none=True)
class ReviewSchema(BaseSchema, Schema): class ReviewSchema(BaseSchema, Schema):
......
...@@ -222,7 +222,7 @@ class SubmissionsService(GeneralService): ...@@ -222,7 +222,7 @@ class SubmissionsService(GeneralService):
results = self.storage_results results = self.storage_results
if not results.path.exists(): if not results.path.exists():
raise errors.ResultsAreNotUploaded(self.submission) raise errors.ResultsAreNotUploaded(self.submission)
stats = results.get('result-stats.json') stats = results.get('suite-stats.json')
if not stats.exists(): if not stats.exists():
raise errors.SuiteStatsNotExists(self.submission) raise errors.SuiteStatsNotExists(self.submission)
return json.loads(stats.read_text('utf-8')) return json.loads(stats.read_text('utf-8'))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment