Verified Commit 0056fe22 authored by Kristyna Pekarkova's avatar Kristyna Pekarkova Committed by Peter Stanko
Browse files

Modified schema, added created_at and updated_at to review item

parent ba9665b0
......@@ -29,7 +29,7 @@ class NestedCollection:
'Submission': ('id', 'state', 'created_at', 'updated_at', 'result', 'points',
*_in('user', ['username', 'codename', 'name', 'uco', 'id']),
*_in('project', DEFAULTS), *_in('course', DEFAULTS)),
'ReviewItem': ('id', '', 'line', 'content', 'file',
'ReviewItem': ('id', '', 'line', 'content', 'file', 'created_at', 'updated_at',
*_in('user', USER_PARAMS)),
'Secret': ('id', 'name', 'expires_at')
......@@ -310,10 +310,10 @@ class ReviewItemSchema(BaseSchema, Schema):
"""Review Item Schema
content = fields.Str()
file = fields.Str()
line = fields.Int()
line_start = fields.Int()
line_end = fields.Int()
file = fields.Str(allow_none=True)
line = fields.Int(allow_none=True)
line_start = fields.Int(allow_none=True)
line_end = fields.Int(allow_none=True)
review = NESTED('Review', only=('id', ''))
user = NESTED['user']
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