fd
This commit is contained in:
parent
0ccd7af301
commit
a9df47a2ee
2 changed files with 4 additions and 4 deletions
|
@ -51,7 +51,7 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing):
|
|||
oauth_app=relationship("OauthApp")
|
||||
|
||||
post = relationship("Submission")
|
||||
flags = relationship("CommentFlag", lazy="dynamic")
|
||||
flags = relationship("CommentFlag", lazy="joined")
|
||||
votes = relationship(
|
||||
"CommentVote",
|
||||
lazy="dynamic",
|
||||
|
@ -293,7 +293,7 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing):
|
|||
|
||||
@property
|
||||
@lazy
|
||||
def active_flags(self): return self.flags.count()
|
||||
def active_flags(self): return len(self.flags)
|
||||
|
||||
@property
|
||||
@lazy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue