Skip to content

Commit

Permalink
clarify is_reply
Browse files Browse the repository at this point in the history
  • Loading branch information
azliu0 committed Apr 15, 2024
1 parent b5252e0 commit 1eedeb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/models/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Email(db.Model):
body(str): The body of the email.
message_id(str): The message ID of the email.
response(Response): AI response to the email.
reply(bool): Whether the email is a reply to another email.
is_reply(bool): Whether the email is a reply to another email.
thread_id(int): The ID of the thread the email belongs to.
thread(Thread): The thread the email belongs to.
"""
Expand All @@ -42,7 +42,7 @@ class Email(db.Model):
back_populates="email", init=False
)

reply: Mapped[bool] = mapped_column(nullable=False, default=False)
is_reply: Mapped[bool] = mapped_column(nullable=False)

thread_id: Mapped[int] = mapped_column(ForeignKey("Threads.id"), nullable=False)
thread: Mapped[Thread] = relationship(back_populates="emails")
Expand All @@ -56,6 +56,6 @@ def map(self):
"subject": self.subject,
"body": self.body,
"messageId": self.message_id,
"reply": self.reply,
"is_reply": self.is_reply,
"threadId": self.thread_id,
}

0 comments on commit 1eedeb5

Please sign in to comment.