mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-21 09:14:54 +00:00
Invisible books are no longer counted in archived page (Fix for #3221)
This commit is contained in:
parent
2bfbbfd4ba
commit
0bf3bb381f
@ -119,20 +119,6 @@ def formatfloat(value, decimals=1):
|
||||
return formated_value
|
||||
|
||||
|
||||
'''@jinjia.app_template_filter('formatseriesindex')
|
||||
def formatseriesindex_filter(series_index):
|
||||
if series_index:
|
||||
try:
|
||||
if int(series_index) - series_index == 0:
|
||||
return int(series_index)
|
||||
else:
|
||||
return series_index
|
||||
except (ValueError, TypeError):
|
||||
return series_index
|
||||
return 0
|
||||
'''
|
||||
|
||||
|
||||
@jinjia.app_template_filter('escapedlink')
|
||||
def escapedlink_filter(url, text):
|
||||
return "<a href='{}'>{}</a>".format(url, escape(text))
|
||||
|
@ -796,7 +796,7 @@ def render_archived_books(page, sort_param):
|
||||
True,
|
||||
True, config.config_read_column)
|
||||
|
||||
name = _('Archived Books') + ' (' + str(len(archived_book_ids)) + ')'
|
||||
name = _('Archived Books') + ' (' + str(len(entries)) + ')'
|
||||
page_name = "archived"
|
||||
return render_title_template('index.html', random=random, entries=entries, pagination=pagination,
|
||||
title=name, page=page_name, order=sort_param[1])
|
||||
|
Loading…
Reference in New Issue
Block a user