mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
cc17fd357f
commit
cb92f8111d
@ -14,7 +14,7 @@ from calibre.library.field_metadata import TagsIcons
|
|||||||
from calibre.utils.config_base import tweaks
|
from calibre.utils.config_base import tweaks
|
||||||
from calibre.utils.icu import sort_key
|
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):
|
class Tag(object):
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ from calibre.utils.recycle_bin import delete_file, delete_tree
|
|||||||
from calibre.utils.formatter_functions import load_user_template_functions
|
from calibre.utils.formatter_functions import load_user_template_functions
|
||||||
from calibre.db.errors import NoSuchFormat
|
from calibre.db.errors import NoSuchFormat
|
||||||
from calibre.db.lazy import FormatMetadata, FormatsList
|
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,
|
from calibre.utils.localization import (canonicalize_lang,
|
||||||
calibre_langcode_to_name)
|
calibre_langcode_to_name)
|
||||||
|
|
||||||
@ -1644,7 +1644,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
|||||||
|
|
||||||
########## data structures for get_categories
|
########## data structures for get_categories
|
||||||
|
|
||||||
CATEGORY_SORTS = ('name', 'popularity', 'rating')
|
CATEGORY_SORTS = CATEGORY_SORTS
|
||||||
MATCH_TYPE = ('any', 'all')
|
MATCH_TYPE = ('any', 'all')
|
||||||
|
|
||||||
class TCat_Tag(object):
|
class TCat_Tag(object):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user