View Single Post
Old 07-17-2023, 11:28 AM   #2710
BookJunkieLI
Evangelist
BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.BookJunkieLI ought to be getting tired of karma fortunes by now.
 
BookJunkieLI's Avatar
 
Posts: 435
Karma: 572984
Join Date: Jan 2010
Location: Long Island
Device: Kobo Libra 2, Kindle 4, Nook Gl4, Nook STR, REB 1100, Ebookwise 1500,
Quote:
Originally Posted by milady133 View Post
It's working correctly, you get the current position status of your reading, that is, the internal epub file where you left.
I was afraid of that since I have no idea what I'm supposed to do with it.

Quote:
If you want something like Unread/Reading/Finished it would be better to use a calculated column based on the Percent read column. The calculation should be something like:
- If Percent read <= 1 then Unread (this way if you open the book by error but you stay in the cover page the book will continue to show as Unread)
- If Percent read >= 99 then Finished
- Else, Reading

I think unfinished books mark as read would tramp this calculation because Percent Read storages the real percent even when you mark the book as read, so you should go to the book and move to the last page so this calculation works.
Actually the Libra 2, at least, moves it to 100%. I have a couple stories on my Libra that I ended up reading on my phone so I marked them Read on the Libra and Calibre was updated to 100% read.

Either way, I get what you're saying with the greater than/less than but I have no idea how to translate that into the template PeterT created.
Code:
Template:       {#percentread:'cmp($, 100, cmp($, 0, '', '', 'Reading'), 'Finished', '')'}
I've tried multiple times to learn template language Python but outside of some very simple things I've never managed to understand them. Usually I find templates others have created very similar to what I want to do and then tweak them until I get what I want. So far I can't figure out how to get it to register >=99. I can however manually change the percent column so that's what I'm currently doing.
BookJunkieLI is offline