05-21-2024, 05:50 AM | #451 |
Weirdo
Posts: 724
Karma: 9081544
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Tolino Shine Color, Tolino Vision 6, Kobo Clara 2E, Boox Note Air 2+
|
Did you, by any chance, start a new book with 0% progress?
|
05-21-2024, 06:26 AM | #452 |
Custom User Title
Posts: 9,581
Karma: 65099765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
All my reading goal books start out at 0%, but those records don't have any dates.
|
Advert | |
|
05-21-2024, 08:19 AM | #453 | |
Wizard
Posts: 1,090
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
Anyway, try the version attached to see if it fixes the problem. Last edited by thiago.eec; 05-21-2024 at 07:25 PM. Reason: Removed test version. New version released. |
|
05-21-2024, 01:50 PM | #454 |
Custom User Title
Posts: 9,581
Karma: 65099765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I guess it's possible that one of my book logs got screwed up somehow, not sure how to identify the specific book. The new version does fix it though!
|
05-25-2024, 04:10 AM | #455 |
Custom User Title
Posts: 9,581
Karma: 65099765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
One of my books, the individual reading speed seems to be stuck at 25.0 pages/day, even after adding new records. Other book entries their speed changes when I update them.
Code:
"1801": { "authors": [ "Richard Adams" ], "challenges": [ "Annual" ], "date": { "__class__": "datetime.datetime", "__value__": "2024-05-25T07:03:38.546964+00:00" }, "genre": [ "Physical Books.Fiction" ], "last_year_pages": 0, "page_count": 478, "read_pages": 249, "records": { "0": { "date": null, "read_pages": 0, "status": 0 }, "1": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-20T02:20:29.059778+00:00" }, "read_pages": 29, "status": 6 }, "10": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-22T23:26:47.907649+00:00" }, "read_pages": 134, "status": 28 }, "11": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-23T01:37:50.672731+00:00" }, "read_pages": 148, "status": 31 }, "12": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-23T05:01:15.516423+00:00" }, "read_pages": 158, "status": 33 }, "13": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-23T19:47:05.273696+00:00" }, "read_pages": 167, "status": 35 }, "14": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-24T00:21:26.098232+00:00" }, "read_pages": 186, "status": 39 }, "15": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-24T04:17:47.145538+00:00" }, "read_pages": 206, "status": 43 }, "16": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-24T17:54:31.119463+00:00" }, "read_pages": 215, "status": 45 }, "17": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-24T21:42:41.506507+00:00" }, "read_pages": 234, "status": 49 }, "18": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-25T01:01:28.508090+00:00" }, "read_pages": 239, "status": 50 }, "19": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-25T07:03:38.546964+00:00" }, "read_pages": 249, "status": 52 }, "2": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-20T06:40:16.377385+00:00" }, "read_pages": 38, "status": 8 }, "3": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-20T19:51:24.807883+00:00" }, "read_pages": 57, "status": 12 }, "4": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-21T00:33:16.842925+00:00" }, "read_pages": 67, "status": 14 }, "5": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-21T05:00:28.927299+00:00" }, "read_pages": 81, "status": 17 }, "6": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-21T17:00:47.609068+00:00" }, "read_pages": 86, "status": 18 }, "7": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-21T20:20:24.748048+00:00" }, "read_pages": 100, "status": 21 }, "8": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-22T02:45:55.936252+00:00" }, "read_pages": 115, "status": 24 }, "9": { "date": { "__class__": "datetime.datetime", "__value__": "2024-05-22T07:32:12.513985+00:00" }, "read_pages": 129, "status": 27 } }, "reread_count": 3, "shelf": "Rereading", "status": 52, "title": "Watership Down", "title_sort": "Watership Down" }, Last edited by ownedbycats; 05-25-2024 at 04:13 AM. |
Advert | |
|
05-25-2024, 07:21 AM | #456 |
Wizard
Posts: 1,090
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
My mistake. The JSON dict is unordered* and I forgot to sort the records before calculating.
I'll release a fix in a couple of minutes. * Actually, it is ordered, but the book ids are treated as strings, so instead of (1, 2, 3, ..., 9, 10, 11, 12, ..., 19, 20, 21), you get (1, 10, 11, 12, ..., 19, 2, 20, 21, 3, 4 ..., 9). So we need to reorder it treating the keys as integers. Last edited by thiago.eec; 05-25-2024 at 07:27 AM. |
05-25-2024, 07:40 AM | #457 |
Wizard
Posts: 1,090
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Version 1.5.8 - 25 May 2024
- Bug fix: Speed tooltip: Sort book records before calculating reading speed |
05-25-2024, 11:28 AM | #458 |
Custom User Title
Posts: 9,581
Karma: 65099765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
That fixed it! I now get 31.4 pages a day.
Is it possible this could also have something to do with the error described in #453? I know I have at least one book where records 0 and 1 got deleted. Last edited by ownedbycats; 05-25-2024 at 03:18 PM. |
05-27-2024, 01:49 PM | #459 | |
Wizard
Posts: 1,090
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
The first case is probably what I said and you have a date typo or something. It calculates how many days since first and last record, and in case the last day is just one day earlier than the first, then you get a result of zero, and the speed can't be calculated, throwing the division by zero error. The second one was just a sorting problem, like I explained. Both are taking care of. |
|
07-14-2024, 02:08 AM | #460 |
Custom User Title
Posts: 9,581
Karma: 65099765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
A suggestion: Like the "x days to finish" on the tooltip of currently-reading books, it'd be interesting to see how many days it took to finish a specific finished book (based on the first and last recorded dates).
|
07-14-2024, 04:36 AM | #461 |
Grand Sorcerer
Posts: 6,394
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Keeping in mind that you can have only one date for a book
Last edited by Terisa de morgan; 08-25-2024 at 02:18 PM. |
07-14-2024, 05:21 AM | #462 |
Custom User Title
Posts: 9,581
Karma: 65099765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Lol, yeah. I sometimes wonder if my reading speed would get messed up by a multi-day power outage resulting in multiple books with only the date I finished reading.
|
07-14-2024, 05:40 AM | #463 |
Grand Sorcerer
Posts: 6,394
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
|
07-17-2024, 10:03 AM | #464 |
Wizard
Posts: 1,090
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Version 1.5.9 - 17 Jul 2024
- Improve the tooltip for read books: x pages/day | finished in y days |
07-17-2024, 08:07 PM | #465 |
Custom User Title
Posts: 9,581
Karma: 65099765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
thank you!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Reading List | kiwidude | Plugins | 1406 | 10-16-2024 09:28 PM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 06:25 AM |
Reading Goal | KyBunnies | Audiobook Discussions | 12 | 10-25-2017 06:29 PM |