Ensure correct types in set_pages

This commit is contained in:
Kovid Goyal 2026-01-01 08:46:38 +05:30
parent efd9342139
commit 4a994ac4d4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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,))
# }}}