Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-26-2023, 11:25 AM   #16
chaley
Grumpy old git
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.
 
chaley's Avatar
 
Posts: 10,898
Karma: 4839799
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, 01: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: 23,352
Karma: 104708851
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
Old 01-26-2023, 01:11 PM   #18
chaley
Grumpy old git
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.
 
chaley's Avatar
 
Posts: 10,898
Karma: 4839799
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 01:16 AM.


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