This commit is contained in:
Aevann1 2021-08-06 14:22:29 +02:00
parent e69a679965
commit b60cc38f5c
7 changed files with 49 additions and 25 deletions

View file

@ -86,6 +86,11 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing):
return f"<Comment(id={self.id})>"
@property
@lazy
def score(self):
return self.upvotes - self.downvotes
@property
@lazy
def fullname(self):