forked from mirrors/bookwyrm
Fixes python formatting
This commit is contained in:
parent
454dd25681
commit
2867d703cc
1 changed files with 2 additions and 2 deletions
|
@ -152,12 +152,12 @@ class User(OrderedCollectionPageMixin, AbstractUser):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def unread_notification_count(self):
|
def unread_notification_count(self):
|
||||||
""" count of notifications, for the templates """
|
"""count of notifications, for the templates"""
|
||||||
return self.notification_set.filter(read=False).count()
|
return self.notification_set.filter(read=False).count()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def has_unread_mentions(self):
|
def has_unread_mentions(self):
|
||||||
""" whether any of the unread notifications are conversations """
|
"""whether any of the unread notifications are conversations"""
|
||||||
return self.notification_set.filter(
|
return self.notification_set.filter(
|
||||||
read=False,
|
read=False,
|
||||||
notification_type__in=["REPLY", "MENTION", "TAG"],
|
notification_type__in=["REPLY", "MENTION", "TAG"],
|
||||||
|
|
Loading…
Reference in a new issue