remotes/1693045480750635534/spooky-22
Aevann1 2022-04-03 20:08:59 +02:00
parent 73af57f141
commit 2dd4e6a573
2 changed files with 2 additions and 2 deletions

View File

@ -426,7 +426,7 @@ class User(Base):
@property
@lazy
def not_post_notifications_count(self):
return self.notifications_count - self.post_notifications_count
return self.notifications_count - self.post_notifications_count - self.reddit_notifications_count
@property
@lazy

View File

@ -17,7 +17,7 @@
<ul class="nav settings-nav" style="padding:0 30px;">
<li class="nav-item">
<a class="nav-link py-3{% if not '=true' in request.full_path %} active{% endif %}" href="/notifications">
All {% if v.not_post_notifications_count - v.reddit_notifications_count %} <span class="font-weight-bold" style="color:red">({{v.not_post_notifications_count - v.reddit_notifications_count}})</span>{% endif %}
All {% if v.not_post_notifications_count %} <span class="font-weight-bold" style="color:red">({{v.not_post_notifications_count}})</span>{% endif %}
</a>
</li>
<li class="nav-item">