dgf
This commit is contained in:
parent
267ebb9aeb
commit
95c9149dda
2 changed files with 9 additions and 4 deletions
|
@ -425,8 +425,13 @@ class User(Base):
|
|||
|
||||
@property
|
||||
@lazy
|
||||
def not_post_notifications_count(self):
|
||||
return self.notifications_count - self.post_notifications_count - self.reddit_notifications_count
|
||||
def do_posts(self):
|
||||
return self.post_notifications_count and self.notifications_count-self.reddit_notifications_count == self.post_notifications_count
|
||||
|
||||
@property
|
||||
@lazy
|
||||
def do_reddit(self):
|
||||
return self.notifications_count == self.reddit_notifications_count
|
||||
|
||||
@property
|
||||
@lazy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue