Skip to content

Commit

Permalink
Use appropriate typing instead of nullable=True in the mapped column …
Browse files Browse the repository at this point in the history
…spec for chat message feedback
  • Loading branch information
dannon committed Nov 19, 2024
1 parent 2832052 commit 00536ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3002,7 +3002,7 @@ class ChatExchangeMessage(Base, RepresentById):
chat_exchange_id: Mapped[int] = mapped_column(ForeignKey("chat_exchange.id"), index=True)
create_time: Mapped[datetime] = mapped_column(default=now, nullable=True)
message: Mapped[str] = mapped_column(Text)
feedback: Mapped[int] = mapped_column(Integer, nullable=True)
feedback: Mapped[Optional[int]] = mapped_column(Integer)
chat_exchange: Mapped["ChatExchange"] = relationship("ChatExchange", back_populates="messages")

def __init__(self, message, feedback=None):
Expand Down

0 comments on commit 00536ce

Please sign in to comment.