Thread
:
Set a value to a custom column inside a plugin
View Single Post
08-26-2019, 12:21 AM
#
2
kovidgoyal
creator of calibre
Posts: 45,667
Karma: 28549304
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