Skip to content

Commit

Permalink
fix(models.py): fix error in server default for date in stats table
Browse files Browse the repository at this point in the history
now date is assigned database-side
  • Loading branch information
Michele-Alberti committed Mar 1, 2024
1 parent 0a9c836 commit c97eab0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dlunch/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,7 @@ class Stats(Data):
date = Column(
Date,
nullable=False,
default=datetime.utcnow(),
server_default=func.current_timestamp(),
server_default=func.current_date(),
)
guest = Column(
String(20),
Expand Down

0 comments on commit c97eab0

Please sign in to comment.