mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix regression in user category search.
This commit is contained in:
parent
1ad3979e38
commit
8b7b831d80
@ -426,6 +426,8 @@ class ResultCache(SearchQueryParser): # {{{
|
|||||||
if l > 0:
|
if l > 0:
|
||||||
alt_loc = location[0:l]
|
alt_loc = location[0:l]
|
||||||
alt_item = location[l+1:]
|
alt_item = location[l+1:]
|
||||||
|
else:
|
||||||
|
alt_loc = None
|
||||||
for key in user_cats:
|
for key in user_cats:
|
||||||
if key == location or key.startswith(location + '.'):
|
if key == location or key.startswith(location + '.'):
|
||||||
for (item, category, ign) in user_cats[key]:
|
for (item, category, ign) in user_cats[key]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user