diff --git a/bookwyrm/models/user.py b/bookwyrm/models/user.py index 3b8270773..1e9db4011 100644 --- a/bookwyrm/models/user.py +++ b/bookwyrm/models/user.py @@ -247,7 +247,7 @@ class AnnualGoal(BookWyrmModel): ''' the books you've read this year ''' return self.user.readthrough_set.filter( finish_date__year__gte=self.year - ).order_by('finish_date').all() + ).order_by('-finish_date').all() @property diff --git a/bookwyrm/templates/snippets/components/card.html b/bookwyrm/templates/snippets/components/card.html index 3c2cf9f1e..f1104893a 100644 --- a/bookwyrm/templates/snippets/components/card.html +++ b/bookwyrm/templates/snippets/components/card.html @@ -4,10 +4,12 @@ {% endblock %} + {% if not status or status.status_type != 'GeneratedNote' or status.book or status.mention_books.exists or status.mention_users.exists %}
{% block card-content %} {% endblock %}
+ {% endif %}