From a69bfb66a9854bc5fadd68f25c0ade03c78ac9cb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 7 Aug 2012 17:22:37 +0530 Subject: [PATCH] Update the last modified column record of a book, whenever a format is added to the book. --- src/calibre/library/database2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/library/database2.py b/src/calibre/library/database2.py index 60f421623b..c125cad573 100644 --- a/src/calibre/library/database2.py +++ b/src/calibre/library/database2.py @@ -1425,6 +1425,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns): size=stream.tell() self.conn.execute('INSERT OR REPLACE INTO data (book,format,uncompressed_size,name) VALUES (?,?,?,?)', (id, format.upper(), size, name)) + self.dirtied([id], commit=False) self.conn.commit() self.format_filename_cache[id][format.upper()] = name self.refresh_ids([id])