View Single Post
Old 12-17-2020, 03:27 PM   #121
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: 12,465
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by capink View Post
Thanks, it is working now. It works for me either way. It is your call.
Perhaps fetching the value of a single global is a good use case. I changed the formatter to return the value of the last (and perhaps the only) variable fetched.

Here is a copy of formatter.py with that change.

EDIT: removed attachment now that the files are in the official calibre source.

Last edited by chaley; 12-19-2020 at 06:03 AM. Reason: Removed attachment
chaley is offline   Reply With Quote