Skip to content

Commit

Permalink
Merge pull request #69 from profcomff/fix-commentpost-schema
Browse files Browse the repository at this point in the history
fix commentpost and commentget
  • Loading branch information
parfenovma authored Dec 11, 2024
2 parents 6cef010 + 7d60705 commit 6a03805
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 6a03805

Please sign in to comment.