mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-18 22:26:34 +00:00
Be consistent between variable name & logic. Equal is already too short.
This commit is contained in:
parent
c4072cbc04
commit
6be97a6102
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue