Skip to content

Commit

Permalink
hotfix datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
noxethiems committed Oct 24, 2023
1 parent 86403bf commit 1e27e6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion identity_socializer/db/models/relationship_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class RelationshipModel(Base):
following_id: Mapped[str] = mapped_column(String(length), ForeignKey("users.id"))
created_at: Mapped[DateTime] = mapped_column(
DateTime,
default=datetime.datetime.utcnow(),
default=datetime.datetime.utcnow,
)

follower = relationship("UserModel", foreign_keys=[follower_id])
Expand Down
2 changes: 1 addition & 1 deletion identity_socializer/db/models/user_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ class UserModel(Base):
blocked: Mapped[bool] = mapped_column(Boolean, nullable=False, default=False)
created_at: Mapped[DateTime] = mapped_column(
DateTime,
default=datetime.datetime.utcnow(),
default=datetime.datetime.utcnow,
nullable=False,
)

0 comments on commit 1e27e6a

Please sign in to comment.