mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-23 01:51:08 +00:00
Python formatting
This commit is contained in:
parent
becc90d485
commit
e94e72a594
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ def get_review_count(book):
|
|||
"""how many reviews?"""
|
||||
return models.Review.objects.filter(deleted=False, book=book).count()
|
||||
|
||||
|
||||
@register.filter(name="book_description")
|
||||
def get_book_description(book):
|
||||
"""use the work's text if the book doesn't have it"""
|
||||
|
|
Loading…
Reference in a new issue