mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-01-29 07:03:30 -05:00
Ensure correct types in set_pages
This commit is contained in:
parent
efd9342139
commit
4a994ac4d4
@ -1800,7 +1800,7 @@ class Cache:
|
||||
pages = excluded.pages, algorithm = excluded.algorithm,
|
||||
format = excluded.format, format_size = excluded.format_size,
|
||||
timestamp = excluded.timestamp, needs_scan = excluded.needs_scan;
|
||||
''', (book_id, pages, algorithm, format, format_size, now))
|
||||
''', (book_id, int(pages), int(algorithm), format, int(format_size), now))
|
||||
self.fields['pages'].table.book_col_map[book_id] = pages
|
||||
self._clear_composite_caches((book_id,))
|
||||
# }}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user