mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 18:23:44 +02:00
...
This commit is contained in:
parent
cc17fd357f
commit
cb92f8111d
2 changed files with 3 additions and 3 deletions
|
|
@ -14,7 +14,7 @@
|
|||
from calibre.utils.config_base import tweaks
|
||||
from calibre.utils.icu import sort_key
|
||||
|
||||
CATEGORY_SORTS = { 'name', 'popularity', 'rating' }
|
||||
CATEGORY_SORTS = ('name', 'popularity', 'rating') # This has to be a tuple not a set
|
||||
|
||||
class Tag(object):
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
from calibre.utils.formatter_functions import load_user_template_functions
|
||||
from calibre.db.errors import NoSuchFormat
|
||||
from calibre.db.lazy import FormatMetadata, FormatsList
|
||||
from calibre.db.categories import Tag
|
||||
from calibre.db.categories import Tag, CATEGORY_SORTS
|
||||
from calibre.utils.localization import (canonicalize_lang,
|
||||
calibre_langcode_to_name)
|
||||
|
||||
|
|
@ -1644,7 +1644,7 @@ def get_books_for_category(self, category, id_):
|
|||
|
||||
########## data structures for get_categories
|
||||
|
||||
CATEGORY_SORTS = ('name', 'popularity', 'rating')
|
||||
CATEGORY_SORTS = CATEGORY_SORTS
|
||||
MATCH_TYPE = ('any', 'all')
|
||||
|
||||
class TCat_Tag(object):
|
||||
|
|
|
|||
Loading…
Reference in a new issue