01-01-2024, 01:48 PM | #376 |
Custom User Title
Posts: 8,755
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
01-01-2024, 03:21 PM | #377 | ||||||
Guru
Posts: 942
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
There were two division by zero errors: for 2023-12-31 and 2024-01-01. Both remaining days would return zero. First I only fixed the error for the last day of the year. Then I made the second fix but forgot to release a new version. Please test the new version and see if it works now (if you guys are still in the 2024-01-01... maybe not Terisa). |
||||||
Advert | |
|
01-01-2024, 03:26 PM | #378 |
Guru
Posts: 942
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Version 1.2.5 - 01 Jan 2024
- Fix for rereading count: only count books already finished (reading progress = 100%) - Fix for 'Division by zero' error in Statistics (for the first day of the year) |
01-01-2024, 03:55 PM | #379 |
Grand Sorcerer
Posts: 6,259
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Now that I've already finished playing with calibre source code , I've been able to test it (not 10PM yet here), and it works, thank you very much!
|
01-01-2024, 04:37 PM | #380 |
Custom User Title
Posts: 8,755
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Yeah, I can't figure out the issue with the double-deletion either - I thought maybe it could've been that there were no 2024 records (I updated lastread but not percentread) but that didn't fix it. Likely just gremlins in the system. Editing the JSON to remove the book from 2023 worked.
The new version fixes the division by zero issue. |
Advert | |
|
01-01-2024, 05:08 PM | #381 |
Guru
Posts: 942
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Great! All good now, except for the gremlins. lol
|
01-02-2024, 04:33 PM | #382 |
Custom User Title
Posts: 8,755
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I just ran into a very strange issue.
In the json, a lot (maybe all) of my 2023 books got copied to 2024 producing the 'wrong year' message when trying to open edit goal. All my 2024 books just outright disappeared. I can't figure out what happened, the autoadd tag is correct and I'd already validated my previous json edit worked. As I couldn't access edit goal to manually restore, I copied the contents of my most recent backup to the json and that fixed it at least. Any other similar issues from other users? This makes me wonder if an automatic daily backup could be viable. Last edited by ownedbycats; 01-02-2024 at 04:41 PM. |
01-02-2024, 04:48 PM | #383 | |
Guru
Posts: 942
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
The JSON file is really fragile when handled manually. Even a minor error (a misplaced comma, missing a closing bracket, etc.) can lead to calibre rebuilding the database. And this can cause a lot of strange things, since it has to guess the missing bits. But that's just a guess. Maybe is a bug in the plugin. If you find any more info on that, or if it happen again, please let me know, so I could try to reproduce (and hopefully fix it). Most of the plugin functions were supposedly stable by now, except for the auto migration, that was yet to be tested, and caused some problems. But that's a one time operation and can't be doing anything by now. |
|
01-02-2024, 04:50 PM | #384 |
Custom User Title
Posts: 8,755
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
The weird thing is that I'd already validated the log after I edited it, and usually a broken one just blanks entirely. It's definitely weird.
|
01-02-2024, 04:51 PM | #385 |
Guru
Posts: 942
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
|
01-02-2024, 04:56 PM | #386 |
Guru
Posts: 942
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Now you brought up a possible culprit. A change to the auto-add column triggers the addition. Were you making a bulk change to your auto-add column?
Last edited by thiago.eec; 01-02-2024 at 05:05 PM. Reason: typo |
01-02-2024, 05:14 PM | #387 |
Custom User Title
Posts: 8,755
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I use the #admintags (as implied, a taglike) for this. the tags are readinggoal:2023 and readinggoal:2024. I checked and both the settings and added tags are correct.
|
01-02-2024, 05:35 PM | #388 |
Custom User Title
Posts: 8,755
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I was able to replicate the issue.
It happens when deleting a single reading record from a book in an older year. This wouldn't have occurred before as the plugin only started existing last year and anything pre-2023 would have only a single 100% record. Additionally: I feel like 'import from backup' should be in configuration to make it accessible when Edit Goal isn't accessible. Last edited by ownedbycats; 01-02-2024 at 05:39 PM. |
01-02-2024, 11:09 PM | #389 | |
Guru
Posts: 942
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
The delete record button was using the current year data as default. I'll release the fix in the morning. |
|
01-03-2024, 04:36 AM | #390 |
Weirdo
Posts: 676
Karma: 8902748
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Tolino Shine Color, Tolino Vision 6, Kobo Clara 2E, Boox Note Air 2+
|
It's just awesome how the community comes together to improve the plugin. Whenever I find something unexpected, ownedbycats has already reported the issue and figured the source already out <3
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Reading List | kiwidude | Plugins | 1320 | 05-18-2024 01:12 PM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM |
Reading Goal | KyBunnies | Audiobook Discussions | 12 | 10-25-2017 05:29 PM |