Small cleanup

This commit is contained in:
Mouse Reeve 2021-09-02 09:12:56 -07:00
parent 3d394f96bf
commit a236163e67
2 changed files with 2 additions and 2 deletions
bookwyrm
templates/book
templatetags

View file

@ -4,7 +4,6 @@
{% load humanize %}
{% load utilities %}
{% load static %}
{% load layout %}
{% block title %}{{ book|book_title }}{% endblock %}

View file

@ -55,7 +55,8 @@ def truncatepath(value, arg):
@register.simple_tag(takes_context=False)
def get_book_cover_thumbnail(book, size="medium", ext="jpg"):
"""Returns a book thumbnail at the specified size and extension, with fallback if needed"""
"""Returns a book thumbnail at the specified size and extension,
with fallback if needed"""
if size == "":
size = "medium"
try: