View Single Post
Old 09-23-2024, 07:39 AM   #537
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,234
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by ownedbycats View Post
A strange behaviour that I've been wondering is intended...
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:
Originally Posted by Wiggo View Post
Didn't work.

Strange in that respect, because the entry is there, but no colour.

Edit: Sent you a PM
Now I see the problem. The plugin is using the color only for the current year, but no for past years. I'll fix it.

Quote:
Originally Posted by Terisa de morgan View Post
I've shared the files with you.
Thank you Terisa. I'll add it on the next update.
thiago.eec is offline   Reply With Quote