mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 14:53:37 +02:00
Another 'right' fix for the multiple user category problem
This commit is contained in:
parent
0b0662c632
commit
ede45bbc78
1 changed files with 0 additions and 2 deletions
|
|
@ -485,7 +485,6 @@ def cc_series_index_column_for(self, key):
|
|||
return self._tb_cats[key]['rec_index'] + 1
|
||||
|
||||
def add_user_category(self, label, name):
|
||||
label = lower(label)
|
||||
if label in self._tb_cats:
|
||||
raise ValueError('Duplicate user field [%s]'%(label))
|
||||
self._tb_cats[label] = {'table':None, 'column':None,
|
||||
|
|
@ -525,7 +524,6 @@ def get_search_terms(self):
|
|||
def _add_search_terms_to_map(self, key, terms):
|
||||
if terms is not None:
|
||||
for t in terms:
|
||||
t = t.lower()
|
||||
if t in self._search_term_map:
|
||||
raise ValueError('Attempt to add duplicate search term "%s"'%t)
|
||||
self._search_term_map[t] = key
|
||||
|
|
|
|||
Loading…
Reference in a new issue