diff --git a/cps/jinjia.py b/cps/jinjia.py index ae1945a4..9635f154 100644 --- a/cps/jinjia.py +++ b/cps/jinjia.py @@ -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 "{}".format(url, escape(text)) diff --git a/cps/web.py b/cps/web.py index 87633dd3..36653a45 100644 --- a/cps/web.py +++ b/cps/web.py @@ -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])