fix bug with profile views older than a month

remotes/1693045480750635534/spooky-22
Aevann1 2022-06-22 18:42:07 +02:00
parent 8628e30aa5
commit 171df8a2c1
1 changed files with 1 additions and 1 deletions

View File

@ -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: