mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 06:35:34 +01:00
Update the last modified column record of a book, whenever a format is added to the book.
This commit is contained in:
parent
59ef9593e6
commit
a69bfb66a9
1 changed files with 1 additions and 0 deletions
|
|
@ -1425,6 +1425,7 @@ def add_format(self, index, format, stream, index_is_id=False, path=None,
|
|||
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])
|
||||
|
|
|
|||
Loading…
Reference in a new issue