fix for recent where annotations weren't being accounted for.

this is now working correctly.
This commit is contained in:
ajurna
2020-05-25 18:29:47 +01:00
parent 1f32d518bf
commit b420f074d6
2 changed files with 15 additions and 3 deletions

View File

@@ -182,6 +182,15 @@ def generate_directory(user, directory=False):
def generate_label(book):
"""
book need to be annotated with the following from ComicStatus
* unread
* finished
* last_read_page
* total_pages
:param book: ComicBook
:return: str
"""
unread_text = '<center><span class="label label-default">Unread</span></center>'
if not hasattr(book, 'unread'):
label_text = unread_text