Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit 66838d8

Browse files
committed
chore: use Singer in sample
1 parent 69ea1a2 commit 66838d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ class Singer(Base):
8888
)
8989

9090

91-
@event.listens_for(TimestampUser, "before_update")
91+
@event.listens_for(Singer, "before_update")
9292
def singer_before_update(mapper, connection, target):
9393
"""Updates the commit timestamp when the row is updated."""
94-
target.updated_at = text("PENDING_COMMIT_TIMESTAMP()")
94+
target.last_update_time = text("PENDING_COMMIT_TIMESTAMP()")
9595

9696

9797
class Album(Base):

0 commit comments

Comments
 (0)