Fix minor multiple location ondevice bug

This commit is contained in:
Kovid Goyal 2010-06-01 16:07:40 -06:00
parent ef0af86b19
commit 721b48038e

View File

@ -1123,12 +1123,12 @@ class DeviceGUI(object):
if cache:
if id in cache['db_ids']:
loc[i] = True
break
continue
if mi.authors and \
re.sub('(?u)\W|[_]', '', authors_to_string(mi.authors).lower()) \
in cache['authors']:
loc[i] = True
break
continue
return loc
def set_books_in_library(self, booklists, reset=False):