Skip to content

Commit

Permalink
Make read_date optional (#117)
Browse files Browse the repository at this point in the history
* Make read_date optional

* Update _message.py
  • Loading branch information
Antoni-Czaplicki authored Sep 11, 2022
1 parent dff05ed commit faeb5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vulcan/data/_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ class Message(Serializable):
subject: str = StringField(key="Subject")
content: str = StringField(key="Content")
sent_date: DateTime = ChildField(DateTime, key="DateSent")
read_date: DateTime = ChildField(DateTime, key="DateRead")
status: int = IntegerField(key="Status")
sender: Address = ChildField(Address, key="Sender")
receivers: List[Address] = SequenceField(Address, key="Receiver", repr=True)
attachments: List[Attachment] = SequenceField(
Attachment, key="Attachments", repr=True
)
read_date: DateTime = ChildField(DateTime, key="DateRead", required=False)

@classmethod
async def get(
Expand Down

0 comments on commit faeb5bc

Please sign in to comment.