Verified Commit 7d670ebe authored by Peter Stanko's avatar Peter Stanko
Browse files

Fixed processing

parent b7feea8d
......@@ -141,7 +141,7 @@ class SubmissionProcessor:
def process_result(self):
storage_entity =
# @mdujava - here put submission processing
return self._submission_result_processing(storage_entity)
def _submission_result_processing(self, storage_entity: entities.Entity):
suite_stats = storage_entity.get('suite-stats.json')
......@@ -152,8 +152,10 @@ class SubmissionProcessor:
return self._parse_stats(stats)
def _parse_stats(self, stats: dict):
log.debug(f"[PROC] Processing the stats: {stats}")
points = stats.get('final_points', 0)
result = stats.get('result', 'none').lower()
log.debug(f"[PROC] Processing stats: points={points}, result={result}")
self.submission.result = result
self.submission.points = points
return self.submission
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