fix(show): Use correct timestamp for transactions
This commit is contained in:
@@ -234,7 +234,7 @@ class Transaction(Base):
|
|||||||
type: Mapped[TransactionTypes] = mapped_column(nullable=False)
|
type: Mapped[TransactionTypes] = mapped_column(nullable=False)
|
||||||
quantity: Mapped[decimal.Decimal] = mapped_column(Numeric(10, 2), nullable=True)
|
quantity: Mapped[decimal.Decimal] = mapped_column(Numeric(10, 2), nullable=True)
|
||||||
timestamp: Mapped[datetime.datetime] = mapped_column(
|
timestamp: Mapped[datetime.datetime] = mapped_column(
|
||||||
nullable=False, default=datetime.datetime.now()
|
nullable=False, default=datetime.datetime.now
|
||||||
)
|
)
|
||||||
total_amount: Mapped[decimal.Decimal] = mapped_column(
|
total_amount: Mapped[decimal.Decimal] = mapped_column(
|
||||||
Numeric(10, 2), nullable=False
|
Numeric(10, 2), nullable=False
|
||||||
|
|||||||
Reference in New Issue
Block a user