Merge branch 'main' into production

This commit is contained in:
Mouse Reeve 2022-01-06 13:13:05 -08:00
commit a806264497
2 changed files with 2 additions and 2 deletions

View file

@ -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):

View file

@ -109,7 +109,7 @@
</div>
{% if not books %}
<p class="has-text-centered is-size-5">{% blocktrans %}Sadly {{ display_name }} didnt finish any book in {{ year }}{% endblocktrans %}</p>
<p class="has-text-centered is-size-5">{% blocktrans %}Sadly {{ display_name }} didnt finish any books in {{ year }}{% endblocktrans %}</p>
{% else %}
<div class="columns is-mobile">