mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
1b5a67bd49
commit
ca177e071b
@ -790,9 +790,9 @@ class ResultCache(SearchQueryParser): # {{{
|
|||||||
# Simple list. Make it a dict of string 'true'
|
# Simple list. Make it a dict of string 'true'
|
||||||
self.marked_ids_dict = dict.fromkeys(id_dict, u'true')
|
self.marked_ids_dict = dict.fromkeys(id_dict, u'true')
|
||||||
else:
|
else:
|
||||||
self.marked_ids_dict = id_dict.copy()
|
|
||||||
# Ensure that all the items in the dict are text
|
# Ensure that all the items in the dict are text
|
||||||
for id_,val in self.marked_ids_dict.iteritems():
|
self.marked_ids_dict = {}
|
||||||
|
for id_, val in id_dict.iteritems():
|
||||||
self.marked_ids_dict[id_] = unicode(val)
|
self.marked_ids_dict[id_] = unicode(val)
|
||||||
|
|
||||||
# Set the values in the cache
|
# Set the values in the cache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user