mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
25b9d4c118
commit
8580338d8c
@ -7,7 +7,7 @@ __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
|
|||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
import re, itertools, time, traceback
|
import re, itertools, time, traceback
|
||||||
from itertools import repeat
|
from itertools import repeat, izip, imap
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
|
||||||
@ -792,9 +792,8 @@ class ResultCache(SearchQueryParser): # {{{
|
|||||||
self.marked_ids_dict = dict.fromkeys(id_dict, u'true')
|
self.marked_ids_dict = dict.fromkeys(id_dict, u'true')
|
||||||
else:
|
else:
|
||||||
# Ensure that all the items in the dict are text
|
# Ensure that all the items in the dict are text
|
||||||
self.marked_ids_dict = {}
|
self.marked_ids_dict = dict(izip(id_dict.iterkeys(), imap(unicode,
|
||||||
for id_, val in id_dict.iteritems():
|
id_dict.itervalues())))
|
||||||
self.marked_ids_dict[id_] = unicode(val)
|
|
||||||
|
|
||||||
# Set the values in the cache
|
# Set the values in the cache
|
||||||
marked_col = self.FIELD_MAP['marked']
|
marked_col = self.FIELD_MAP['marked']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user