Update the last modified column record of a book, whenever a format is added to the book.

This commit is contained in:
Kovid Goyal 2012-08-07 17:22:37 +05:30
parent 59ef9593e6
commit a69bfb66a9

View File

@ -1425,6 +1425,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
size=stream.tell() size=stream.tell()
self.conn.execute('INSERT OR REPLACE INTO data (book,format,uncompressed_size,name) VALUES (?,?,?,?)', self.conn.execute('INSERT OR REPLACE INTO data (book,format,uncompressed_size,name) VALUES (?,?,?,?)',
(id, format.upper(), size, name)) (id, format.upper(), size, name))
self.dirtied([id], commit=False)
self.conn.commit() self.conn.commit()
self.format_filename_cache[id][format.upper()] = name self.format_filename_cache[id][format.upper()] = name
self.refresh_ids([id]) self.refresh_ids([id])