transfers fix

This commit is contained in:
Aevann1 2022-03-04 18:53:28 +02:00
parent 1e3f1a1962
commit 5faab645c2
4 changed files with 10 additions and 11 deletions

View file

@ -118,8 +118,8 @@ class Comment(Base):
@property
@lazy
def age_string(self):
if self.created_utc: timestamp = self.created_utc
elif self.notif_utc: timestamp = self.notif_utc
if self.notif_utc: timestamp = self.notif_utc
elif self.created_utc: timestamp = self.created_utc
else: return None
age = int(time.time()) - timestamp