notif_utc
This commit is contained in:
parent
d32797ae9e
commit
973f8e3c3b
1 changed files with 3 additions and 1 deletions
|
@ -118,7 +118,9 @@ class Comment(Base):
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def age_string(self):
|
def age_string(self):
|
||||||
if self.notif_utc: timestamp = self.notif_utc
|
notif_utc = self.__dict__.get("notif_utc", None)
|
||||||
|
|
||||||
|
if notif_utc: timestamp = notif_utc
|
||||||
elif self.created_utc: timestamp = self.created_utc
|
elif self.created_utc: timestamp = self.created_utc
|
||||||
else: return None
|
else: return None
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue