[books] Fix calculation of current page

This commit is contained in:
2024-09-08 14:13:40 -04:00
parent eae169aff7
commit 2136c1562a

View File

@ -296,7 +296,7 @@ def build_scrobbles_from_book_map(
log_data = { log_data = {
"koreader_hash": book_dict.get("hash"), "koreader_hash": book_dict.get("hash"),
"page_data": scrobble_page_data, "page_data": scrobble_page_data,
"pages_read": cur_page_number, "pages_read": len(scrobble_page_data.keys()),
} }
scrobbles_to_create.append( scrobbles_to_create.append(
Scrobble( Scrobble(