From 6be97a61029b031471cf67a926acf0484ad9ba61 Mon Sep 17 00:00:00 2001 From: Fabien Basmaison Date: Wed, 9 Jun 2021 19:03:15 +0200 Subject: [PATCH] Be consistent between variable name & logic. Equal is already too short. --- bookwyrm/templatetags/utilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/templatetags/utilities.py b/bookwyrm/templatetags/utilities.py index ba7ef1cb..23b6685d 100644 --- a/bookwyrm/templatetags/utilities.py +++ b/bookwyrm/templatetags/utilities.py @@ -21,12 +21,12 @@ def get_user_identifier(user): @register.filter(name="book_title") -def get_title(book, too_short=6): +def get_title(book, too_short=5): """display the subtitle if the title is short""" if not book: return "" title = book.title - if len(title) < too_short and book.subtitle: + if len(title) <= too_short and book.subtitle: title = _("%(title)s: %(subtitle)s") % { "title": title, "subtitle": book.subtitle,