Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kontr 2.0
Portal API Backend
Commits
fbe0c0bb
Verified
Commit
fbe0c0bb
authored
Oct 14, 2018
by
Peter Stanko
Browse files
Submission source
parent
8f26714f
Changes
2
Show whitespace changes
Inline
Side-by-side
portal/rest/schemas.py
View file @
fbe0c0bb
...
...
@@ -270,6 +270,7 @@ class SubmissionSchema(BaseSchema, Schema):
user
=
NESTED
[
'user'
]
points
=
fields
.
Number
()
result
=
fields
.
Str
(
allow_none
=
True
)
source_hash
=
fields
.
Str
(
allow_none
=
True
)
class
ReviewSchema
(
BaseSchema
,
Schema
):
...
...
portal/service/submissions.py
View file @
fbe0c0bb
...
...
@@ -222,7 +222,7 @@ class SubmissionsService(GeneralService):
results
=
self
.
storage_results
if
not
results
.
path
.
exists
():
raise
errors
.
ResultsAreNotUploaded
(
self
.
submission
)
stats
=
results
.
get
(
'
result
-stats.json'
)
stats
=
results
.
get
(
'
suite
-stats.json'
)
if
not
stats
.
exists
():
raise
errors
.
SuiteStatsNotExists
(
self
.
submission
)
return
json
.
loads
(
stats
.
read_text
(
'utf-8'
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment