forked from mirrors/bookwyrm
Small cleanup
This commit is contained in:
parent
3d394f96bf
commit
a236163e67
2 changed files with 2 additions and 2 deletions
bookwyrm
|
@ -4,7 +4,6 @@
|
|||
{% load humanize %}
|
||||
{% load utilities %}
|
||||
{% load static %}
|
||||
{% load layout %}
|
||||
|
||||
{% block title %}{{ book|book_title }}{% endblock %}
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue