mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
fix for recent where annotations weren't being accounted for.
this is now working correctly.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user