This commit is contained in:
Kovid Goyal 2012-01-21 08:52:21 +05:30
parent c3cb8d38f2
commit c1737d8f19

View file

@ -506,7 +506,6 @@ def migrate_preference(key, default):
self.refresh_ondevice = functools.partial(self.data.refresh_ondevice, self)
self.refresh()
self.last_update_check = self.last_modified()
self.format_metadata_cache = defaultdict(dict)
def break_cycles(self):
self.data.break_cycles()
@ -530,6 +529,7 @@ def refresh_format_cache(self):
for book_id, fmt, name in self.conn.get(
'SELECT book,format,name FROM data'):
self.format_filename_cache[book_id][fmt.upper() if fmt else ''] = name
self.format_metadata_cache = defaultdict(dict)
def check_if_modified(self):
if self.last_modified() > self.last_update_check: