This commit is contained in:
Aevann1 2021-09-23 21:22:18 +02:00
parent f2cec4a04d
commit 376a059e9f
3 changed files with 12 additions and 2 deletions

View file

@ -142,6 +142,11 @@ class Comment(Base):
years = now.tm_year - ctd.tm_year
return f"{years}yr ago"
@property
@lazy
def score(self):
return self.upvotes - self.downvotes
@property
@lazy
def fullname(self):