Fix regression in 0.8.36 that caused the calibredb command to not properly refresh format information in standalone calibre-server processes

This commit is contained in:
Kovid Goyal 2012-02-16 21:52:33 +05:30
parent 8420d9967c
commit c748024a2e

View File

@ -534,6 +534,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
def check_if_modified(self):
if self.last_modified() > self.last_update_check:
self.refresh()
self.refresh_format_cache()
self.last_update_check = utcnow()
def path(self, index, index_is_id=False):