Fix ill-used type on order backpopulate mapping

This commit is contained in:
Matthias 2023-07-10 20:27:01 +02:00
parent 8ad32e7498
commit 3cf419cbcd

View File

@ -47,7 +47,7 @@ class Order(ModelBase):
id: Mapped[int] = mapped_column(Integer, primary_key=True)
ft_trade_id: Mapped[int] = mapped_column(Integer, ForeignKey('trades.id'), index=True)
trade: Mapped[List["Trade"]] = relationship("Trade", back_populates="orders")
trade: Mapped["Trade"] = relationship("Trade", back_populates="orders")
# order_side can only be 'buy', 'sell' or 'stoploss'
ft_order_side: Mapped[str] = mapped_column(String(25), nullable=False)