mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-29 19:40:32 +00:00
Show empty string, not "None" for books with no text
This commit is contained in:
parent
fdaa63d5dc
commit
beb5e1f11e
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ def get_book_description(book):
|
|||
def text_overflow(text):
|
||||
''' dont' let book descriptions run for ages '''
|
||||
if not text:
|
||||
return
|
||||
return ''
|
||||
char_max = 500
|
||||
if text and len(text) < char_max:
|
||||
return text
|
||||
|
|
Loading…
Reference in a new issue