![]() |
#526 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,218
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Sure! I'll wait for you to send it before releasing the new version fixing @Wiggo's problem.
Last edited by thiago.eec; 09-21-2024 at 06:07 AM. |
![]() |
![]() |
![]() |
#527 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
FWIW: All template functions return only strings. Even float and integer column references return strings.
|
![]() |
![]() |
![]() |
#528 | |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
Quote:
![]() Just one thing. My rereads are displayed with (1x), but are no longer in orange respectively in the rereading shelf. When I click on ‘show books records’, only the respective year is shown. Last edited by Wiggo; 09-21-2024 at 06:43 AM. |
|
![]() |
![]() |
![]() |
#529 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,218
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
Quote:
2) When you are visualizing your 2024's goal, you only see records for that year. If you want to see other years too, you need to chose 'All' in the year dropdown menu. |
||
![]() |
![]() |
![]() |
#530 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
However, it is possible to work around the formatter coercing the returned value to a string. A user-defined template function can successfully return a non-string if it is directly called by python code such as a python template. A stored python template can return a non-string if it is directly called by python code or a python template. Non-string arguments can be passed as an argument to a python stored template and a user-defined template function. These uses are edge-case, very fragile, and not recommended. I can think of one exception to the above: using stored python templates or functions as a python code library, called by stored python templates using context.funcs. Calling via context.funcs avoids the formatter interpreter. Although this is possible, it is pushing the limits of what the template system was designed to do. I think it would be better to write this kind of code as a plugin. |
||
![]() |
![]() |
![]() |
#531 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,218
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
I see. I think it's better keep it simple. The plugin is just using int(str) to convert the value, since it is supposed to be a number, even if represented as a string.
|
![]() |
![]() |
![]() |
#532 | ||
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
Quote:
If I switch to rereading shelf, no entries as mentioned above Quote:
Should I send you the json file? Last edited by Wiggo; 09-21-2024 at 09:00 AM. |
||
![]() |
![]() |
![]() |
#533 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,218
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
I added some more options to the 'Rereading' shelf/color a while ago. Maybe, you need to reset your config options. Try this: 1) Uncheck all the checkboxes on the first tab of the config dialog 2) Click OK to confirm 3) Open the 'Edit reading goal' dialog and close it 4) Open the config dialog and check the boxes you want 4) Reopen the 'Edit reading goal' dialog and see if it fixed the issues If that doesn't help, then send me your json. Why do you think is strange? When you choose 'All', the plugin aggregates all your data, from all years, so all the records are there. If you choose a single year, then only that year's data is available on the records. Last edited by thiago.eec; 09-21-2024 at 09:14 AM. |
|
![]() |
![]() |
![]() |
#534 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,027
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
A strange behaviour that I've been wondering is intended.
I start off with a book with 0% percentread and no date. Then I add a date and delete the old entry: However, upon the next update: To get around this, I instead set it to 1%, then back to 0% before deleting the two old entries: |
![]() |
![]() |
![]() |
#535 | ||
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
Quote:
![]() Quote:
Edit: Sent you a PM Last edited by Wiggo; 09-21-2024 at 11:28 AM. |
||
![]() |
![]() |
![]() |
#536 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,637
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
I've shared the files with you.
Last edited by Terisa de morgan; 09-21-2024 at 11:47 AM. Reason: I'd forgotten attachments are not allowed |
![]() |
![]() |
![]() |
#537 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,218
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
First, every book must have at least one record. So, when you add a book to your goal, a record is set (in your case, a 0% record).
Now, you must understand that the main entry for the book is constantly updated with the latest metadata. This is not a 'record' per se. If you delete all records, the main entry still have the current values from your calibre library. When you delete the 0% record, it is in fact deleted. But, since you cannot have zero records, a new record will be created with the current value the next time you interact with the plugin. If you don't want a 0% record, you can add the book and wait to delete the 0% record on your next update. Since I want a 0% record (so my reading speed is correctly calculated), this is how I do it: 1) I add the book to my goal with 0% (the date doesn't matter); 2) Then, when I start reading, I update the date 3) Open the Edit Reading Goal dialog and delete the old entry 4) Then, I open again the Edit dialog, so a new updated record is created 5) The next day, let's say I read 20% and update it Now, I have a dated 0% record marking my start and a 20% record the next day. P.S.: Now that you mentioned, I think step 4 could be eliminated by adjusting the code to created the new record immediately, when all records have been deleted. Quote:
Thank you Terisa. I'll add it on the next update. |
|
![]() |
![]() |
![]() |
#538 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,027
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
I followed your instructions and it worked ![]() |
|
![]() |
![]() |
![]() |
#539 |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#540 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,218
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Version 1.6.7 - 23 Sep 2024
- Bug fix: ensure the 'Keep Rereading color' option works for past years too - Bug fix: when deleting the last record, create a new updated one immediately, instead of waiting for the next interaction - Updated ES translation Last edited by thiago.eec; 09-23-2024 at 03:31 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Reading List | kiwidude | Plugins | 1426 | 07-29-2025 06:31 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 |