![]() |
#151 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,110
Karma: 77213681
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Minor bug: I have one book that keeps stubbornly marking itself as re-read even though I only read it once. (This also happened prior to the json reconstruction.) Looking at the entries shows why:
Code:
"records": { "1": { "date": { "__class__": "datetime.datetime", "__value__": "2023-08-30T23:06:45.403373+00:00" }, "read_pages": 11, "status": 7 }, "10": { "date": { "__class__": "datetime.datetime", "__value__": "2023-09-01T07:35:48+00:00" }, "read_pages": 152, "status": 100 }, "2": { "date": { "__class__": "datetime.datetime", "__value__": "2023-08-31T00:49:36.708383+00:00" }, "read_pages": 20, "status": 13 }, "3": { "date": { "__class__": "datetime.datetime", "__value__": "2023-08-31T05:04:00.804985+00:00" }, "read_pages": 43, "status": 28 }, "4": { "date": { "__class__": "datetime.datetime", "__value__": "2023-08-31T05:04:00+00:00" }, "read_pages": 43, "status": 28 }, "5": { "date": { "__class__": "datetime.datetime", "__value__": "2023-08-31T07:13:56.843070+00:00" }, "read_pages": 52, "status": 34 }, "6": { "date": { "__class__": "datetime.datetime", "__value__": "2023-08-31T09:51:03.772525+00:00" }, "read_pages": 59, "status": 39 }, "7": { "date": { "__class__": "datetime.datetime", "__value__": "2023-08-31T11:00:22.277360+00:00" }, "read_pages": 74, "status": 49 }, "8": { "date": { "__class__": "datetime.datetime", "__value__": "2023-09-01T02:10:58.013899+00:00" }, "read_pages": 103, "status": 68 }, "9": { "date": { "__class__": "datetime.datetime", "__value__": "2023-09-01T03:50:57.112940+00:00" }, "read_pages": 128, "status": 84 } }, |
![]() |
![]() |
![]() |
#152 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,233
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
Quote:
|
||
![]() |
![]() |
Advert | |
|
![]() |
#153 | ||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,233
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
Quote:
Quote:
This is only supposed to happen if you have books on your current goal (2023) and them change their date to another year. I tried to replicate your steps but nothing happened. 1) I selected 150 books, including 2023's and 2022's. 2) Clicked the menu and selected 'Remove from reading goal' 3) It said 74 books were removed (all my 2023 books) 4) Then I tried to remove the others from 2022 again, and got the the message that no books were removed 5) I opened the 'Edit reading goal' dialog, changed to 2022, selected the books and clicked the button 'Remove from reading goal', and got the confirmation that they were deleted. The database remained intact. Quote:
That's a shame. Maybe I can find what happened by looking at your database file. Also, the exact steps to reproduce would be very helpful. Like I said, I tried to follow your steps, but everything worked just fine here. Last edited by thiago.eec; 09-10-2023 at 06:48 AM. Reason: typo |
||||
![]() |
![]() |
![]() |
#154 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,233
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
Also, you could try running in debug mode and post the log, to see if we get any more info. Last edited by thiago.eec; 09-09-2023 at 06:09 PM. |
|
![]() |
![]() |
![]() |
#155 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,233
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
That's a bug. The 10th entry should be right after the 9th. It's a sorting error. I'll fix this soon.
|
![]() |
![]() |
Advert | |
|
![]() |
#156 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,110
Karma: 77213681
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
I didn't do any manual json editing prior to this (I tried once, but it blanked the file and I restored from backup). Here's three Reading Goal jsons. 'broken' is the one that caused errors. I also included my most recent backup (pre-challenges) for comparison. Last edited by ownedbycats; 09-09-2023 at 11:43 PM. Reason: removed no-longer-needed file |
|
![]() |
![]() |
![]() |
#157 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,110
Karma: 77213681
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Here is what I did:
1. I went to my 'Read' VL and then used Tag Browser to filter to Oneshot. There's just over 1000 stories here, spanning from 2020-2023. 50 of them were from 2023. 2. I selected them all, then used Reading Goal > Remove From Reading Goal. It reported only 50 stories removed. 3. I opened Edit Reading Goal and looked. The ones from 2023 were removed, but earlier ones weren't. 4. I used 'Mark' to pick one of these books, then closed the Edit window and ran Remove from Reading Goal. It said no books removed. 5. I opened the json in Notepad++ and ran a ctrl+f for the story name, then compared it with some other entries (I saw no difference). Then I closed it without making any changes. 6. I tried 'remove' again with several other stories from 2020-2022. All of them got the message about not being removed. 7. I opened Edit Reading Goal, went to 2022, sorted by page count, selected one of the stories, and used the Delete key. Then I applied changes. 8. When I opened Edit again to check if it had gone, it marked all my pre-2023 books and said it was unable to add them. 9. I opened the options and checked the autoadd settings to make sure it was turned off. Then I closed the settings, restarted Calibre, then tried opening Edit and Statistics. Both of them got the same result. 10. With 'allow adding other year's reading goal' enabled, I tried adding a 2022 book. I got 'No book added to list.' 11. I opened the json in Notepad++. I noticed several recent books were missing. 12. Then I closed Calibre, moved the file to the Documents folder, and opened Calibre to let the plugin make a new json file. Last edited by ownedbycats; 09-09-2023 at 06:45 PM. |
![]() |
![]() |
![]() |
#158 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,641
Karma: 7908443
Join Date: Sep 2020
Device: none
|
slightly off-topic though related, sometimes I use this JSON editor:
http://tomeko.net/software/JSONedit/ Tree view is interesting as it seems easier to edit/remove nodes for test purposes |
![]() |
![]() |
![]() |
#159 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,233
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
To me, looks like you accidentally renamed the '2023' key to '2022', because the plugin won't let you add books with a 2022 date to your 2023 goal. |
|
![]() |
![]() |
![]() |
#160 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,233
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
|
![]() |
![]() |
![]() |
#161 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,233
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Version 1.1.1 - 10 Sep 2023
- Fix the error for autoadd values - Fix for records being incorrectly sorted |
![]() |
![]() |
![]() |
#162 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,233
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
Notice that if you look inside the JSON, it will still be listed as before, because changing this would break old records. |
|
![]() |
![]() |
![]() |
#163 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,110
Karma: 77213681
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Confirming both my problems are solved: autoadd works as expected, and I'm no longer getting surprise duplicates.
![]() Additionally, I think it might have sense to have Series as a column in the Edit window. |
![]() |
![]() |
![]() |
#164 | |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
Back from vacation and excited about the plugin.
Quote:
|
|
![]() |
![]() |
![]() |
#165 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,233
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Reading List | kiwidude | Plugins | 1427 | 08-17-2025 07:09 AM |
[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 |