This commit is contained in:
Aevann1 2022-02-19 23:42:55 +02:00
parent 8c0f00893a
commit 2c2af49635
6 changed files with 16 additions and 19 deletions

View file

@ -701,7 +701,7 @@ def u_username(username, v=None):
if v and u.id != v.id and u.patron:
view = g.db.query(ViewerRelationship).filter_by(viewer_id=v.id, user_id=u.id).one_or_none()
if view: view.last_view_utc = g.timestamp
if view: view.last_view_utc = int(time.time())
else: view = ViewerRelationship(viewer_id=v.id, user_id=u.id)
g.db.add(view)