From 4ba26b7872f8400f1a5dd317892b22b0159bfb13 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 22 Jun 2022 18:45:34 +0200 Subject: [PATCH] fix bug with profile views (again) (again) --- files/classes/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/views.py b/files/classes/views.py index 227c4abb6..036663d01 100644 --- a/files/classes/views.py +++ b/files/classes/views.py @@ -46,7 +46,7 @@ class ViewerRelationship(Base): return f"{days}d ago" now = time.gmtime() - ctd = time.gmtime(age) + ctd = time.gmtime(self.last_view_utc) months = now.tm_mon - ctd.tm_mon + 12 * (now.tm_year - ctd.tm_year) if now.tm_mday < ctd.tm_mday: