Thread
:
Set a value to a custom column inside a plugin
View Single Post
08-25-2019, 11:21 PM
#
2
kovidgoyal
creator of calibre
Posts: 45,419
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Assuming percentage is a numeric field it should be fine. But if what youwant to do is set it in the custom column in the database, the way to do it is like this:
db.new_api.set_field('#percentage', {book_id: value})
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS