Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 01-26-2023, 10:25 AM   #16
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
interesting, using field instead of raw_field (or $ instead of $$) seems to fix it
It doesn't 'fix' it but instead does the /2 calculation. This can lead to floating point answers on custom ratings columns if "allow half stars" is checked.

The calculation is never done when using calibre's database interface, so the programmer can know that the answer will always be an integer between 0 and 10.
chaley is offline   Reply With Quote
Old 01-26-2023, 12:09 PM   #17
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,393
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by chaley View Post
Bottom line: action chains can be used to run more-or-less arbitrary GUI processes using python templates. For me, this is preferable to building things into the GUI, because I avoid all sorts of maintenance and compatibility headaches. On the other hand, we might want to keep an index of this sort of thing, perhaps including template searches, so they are discoverable. At the moment, how to do that efficiently is a mystery.
There was the Action Chains Scripts thread in the Plugins forum but I haven't seen any activity in it since September, 2022.
DNSB is offline   Reply With Quote
Advert
Old 01-26-2023, 12:11 PM   #18
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by DNSB View Post
There was the Action Chains Scripts thread in the Plugins forum but I haven't seen any activity in it since September, 2022.
That is a good place for it. Thanks.
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Column: Average Rating by Author Lys Library Management 5 12-09-2022 04:31 AM
[GUI Plugin] Sum Column a.peter Plugins 31 04-04-2022 10:51 PM
Can I generate sum of column or columns? GeekyGal Calibre 5 09-29-2011 07:32 PM
Question/suggestion on putting an Omnibus into the Series column slayda Calibre 16 08-23-2011 08:34 PM
Add more column options to book list rgoulde Calibre 2 10-06-2009 08:03 AM


All times are GMT -4. The time now is 05:20 PM.


MobileRead.com is a privately owned, operated and funded community.