11-04-2024, 03:49 AM | #647 |
Custom User Title
Posts: 9,574
Karma: 64960983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Possible bug: I think the change added in 1.6.7 (when deleting the last record, create a new updated one immediately, instead of waiting for the next interaction) got regressed. My steps to replicate:
1. Have a book with no read-date and a progress of 0. 2. Add a date to the last-read column and then open Edit Reading Goal. 3. Delete the empty-date 0% record. Upon pressing apply, a new dated one should appear but it didn't until I closed and re-opened the dialog. I found this bug after I had the 0% entries for my two most recently-started books go missing. The first time I thought it was some user error but then it happened again. Last edited by ownedbycats; 11-04-2024 at 03:58 AM. |
11-04-2024, 09:32 AM | #648 |
Wizard
Posts: 1,089
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
. I'll fix it.
|
11-04-2024, 10:11 AM | #649 |
Wizard
Posts: 1,089
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Version 1.7.6 - 04 Nov 2024
- Fix a regression introduced in the last release that broke records management, preventing it to create a new updated record immediately, when the last record is deleted |
11-04-2024, 10:36 AM | #650 |
Custom User Title
Posts: 9,574
Karma: 64960983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
thank you!
|
11-06-2024, 12:36 AM | #651 |
Custom User Title
Posts: 9,574
Karma: 64960983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Question: What happens to 'pages' on existing entries if I change the page-count on a book? Had to recount the pages because I noticed my Count Pages settings were messed up.
EDIT: It seems the main book record gets changed (at least for the current year - updating previous years didn't seem to work) but the progress subrecords don't change. So there's a few oddities such as 200 pages/day on a book that'd gotten recounted to 180 pages, but just a minor annoyance - I can always fix it via JSON if it starts bothers me too much. Last edited by ownedbycats; 11-06-2024 at 03:33 AM. |
11-06-2024, 09:02 AM | #652 |
Wizard
Posts: 1,089
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Back when the database was designed, some choices were made:
So, changing the page count only affects the main entry in the current year. Records are not updated because they reflect a moment in the past. The read pages in the current years' records could be update if they were saved as a percentage, but that's not the case (and changing it at this point would be too much work for litle gain, since past years are not updated anyway). |
11-06-2024, 02:47 PM | #653 |
Custom User Title
Posts: 9,574
Karma: 64960983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Yeah, that makes sense. Considering the nature of eBooks, the 'pages' really only matter for my paper books anyways.
Last edited by ownedbycats; 11-06-2024 at 02:52 PM. |
11-12-2024, 04:05 PM | #654 |
Custom User Title
Posts: 9,574
Karma: 64960983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Out of curiosity, I decided to decide whether it was possible to retroactively create a challenge for a previous year.
My steps; 1. Take a backup of the JSON. 2. In challenges_dict, duplicate this year's "Books Purchased in 2024" challenge. I then edited the name, timestamps, and reset count and progress: Code:
"Books Purchased in 2023": { "count": 0, "end": { "__class__": "datetime.datetime", "__value__": "2023-12-31T04:00:00+00:00" }, "progress": 0, "start": { "__class__": "datetime.datetime", "__value__": "2023-01-01T04:00:00+00:00" } }, 4. Go to a book from 2023's goal, and edited it: Code:
"challenges": [ "Annual", "Books Purchased in 2023" ], I've just reverted to my backup, but I'm curious whether I missed something here that could've made it work. Last edited by ownedbycats; 11-12-2024 at 04:07 PM. |
11-12-2024, 04:50 PM | #655 | |
Wizard
Posts: 1,089
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
P.S.: You will be able to see the challenge and it's books selecting it under 2023, but the 'Custom challenges' dialog only shows the current year info. |
|
11-12-2024, 06:40 PM | #656 |
Custom User Title
Posts: 9,574
Karma: 64960983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Ah, a silly mistake there. I got it working now. Perhaps for the future, the option to switch years in the Challenges dialog?
EDIT: I also noticed that the count and progress in challenges_dict need to be updated manually - I half-expected that though. ANOTHER EDIT: This is making me become very good at editing JSONs without accidentally blanking the files. Last edited by ownedbycats; 11-12-2024 at 08:08 PM. |
11-12-2024, 08:41 PM | #657 |
Custom User Title
Posts: 9,574
Karma: 64960983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
New question: On the years that were added retroactively, the challenges_dict is empty (no annual goal, just "challenges_dict": {}. However, I found that I had to add both an "Annual" and "2022 purchases" in order to get the latter to appear in Edit Goal.
Why does this happen? Is is offset by one to keep Annual from appearing in the dropdown? |
11-12-2024, 09:34 PM | #658 | |||
Wizard
Posts: 1,089
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
Quote:
Quote:
2) When Challenges were added to the plugin, a one time update was performed to add the 'challenges_dict' key to past years, but they were left empty. This way we can have a general code for challenges. 3) From there on, every year has an 'Annual' challenge that includes all the books, plus the others created by the user. Every book added to the current year goal is also automatically added to the the 'Annual' challenge. So, the plugin expects this. This is why you have to add to 'Annual' too. |
|||
Yesterday, 05:32 PM | #659 |
Custom User Title
Posts: 9,574
Karma: 64960983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Yeah, I need to remember that. Just to keep track: when updating existing book record in a previous year using 'add to goal', does it touch anything other than Genres?
For what it matters, I did manage to get the "books purchased in..." challenges put together for 2020 - 2023. Somewhat thankfully, anything earlier than that I wasn't tracking the read dates. Last edited by ownedbycats; Yesterday at 07:07 PM. |
|
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 |