diff --git a/bookwyrm/suggested_users.py b/bookwyrm/suggested_users.py index 0c1d59b5..b30e8412 100644 --- a/bookwyrm/suggested_users.py +++ b/bookwyrm/suggested_users.py @@ -95,7 +95,7 @@ class SuggestedUsers(RedisStore): ).annotate(mutuals=Case(*annotations, output_field=IntegerField(), default=0)) if local: users = users.filter(local=True) - return users[:5] + return users.order_by("-mutuals")[:5] def get_annotated_users(viewer, *args, **kwargs): diff --git a/bookwyrm/templates/annual_summary/layout.html b/bookwyrm/templates/annual_summary/layout.html index ab25458c..c333c26d 100644 --- a/bookwyrm/templates/annual_summary/layout.html +++ b/bookwyrm/templates/annual_summary/layout.html @@ -109,7 +109,7 @@ {% if not books %} -
{% blocktrans %}Sadly {{ display_name }} didn’t finish any book in {{ year }}{% endblocktrans %}
+{% blocktrans %}Sadly {{ display_name }} didn’t finish any books in {{ year }}{% endblocktrans %}
{% else %}