mirror of
https://github.com/janeczku/calibre-web.git
synced 2025-01-10 04:19:00 +02: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
|
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')
|
@jinjia.app_template_filter('escapedlink')
|
||||||
def escapedlink_filter(url, text):
|
def escapedlink_filter(url, text):
|
||||||
return "<a href='{}'>{}</a>".format(url, escape(text))
|
return "<a href='{}'>{}</a>".format(url, escape(text))
|
||||||
|
@ -796,7 +796,7 @@ def render_archived_books(page, sort_param):
|
|||||||
True,
|
True,
|
||||||
True, config.config_read_column)
|
True, config.config_read_column)
|
||||||
|
|
||||||
name = _('Archived Books') + ' (' + str(len(archived_book_ids)) + ')'
|
name = _('Archived Books') + ' (' + str(len(entries)) + ')'
|
||||||
page_name = "archived"
|
page_name = "archived"
|
||||||
return render_title_template('index.html', random=random, entries=entries, pagination=pagination,
|
return render_title_template('index.html', random=random, entries=entries, pagination=pagination,
|
||||||
title=name, page=page_name, order=sort_param[1])
|
title=name, page=page_name, order=sort_param[1])
|
||||||
|
Loading…
Reference in New Issue
Block a user