Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions rating_api/schemas/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CommentGet(Base):
user_id: int | None = None
create_ts: datetime.datetime
update_ts: datetime.datetime
subject: str
subject: str | None = None
text: str
mark_kindness: int
mark_freebie: int
Expand All @@ -22,7 +22,7 @@ class CommentGet(Base):


class CommentPost(Base):
subject: str | None
subject: str
text: str
create_ts: datetime.datetime | None = None
update_ts: datetime.datetime | None = None
Expand All @@ -41,6 +41,7 @@ def validate_mark(cls, value):

class CommentImport(CommentPost):
lecturer_id: int
subject: str | None = None


class CommentImportAll(Base):
Expand Down