fix bug with profile views older than a month
parent
8628e30aa5
commit
171df8a2c1
|
@ -46,7 +46,7 @@ class ViewerRelationship(Base):
|
|||
return f"{days}d ago"
|
||||
|
||||
now = time.gmtime()
|
||||
ctd = time.gmtime(self.created_utc)
|
||||
ctd = time.gmtime(self.last_view_since)
|
||||
|
||||
months = now.tm_mon - ctd.tm_mon + 12 * (now.tm_year - ctd.tm_year)
|
||||
if now.tm_mday < ctd.tm_mday:
|
||||
|
|
Loading…
Reference in New Issue