View Single Post
Old 10-21-2012, 06:12 PM   #16
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,034
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
I'd forgotten that searches are case insensitive, so the regexp search doesn't work, sorry.

Getting and setting custom column values is pretty easy:

Code:
existing=db.get_custom(book_id,label=label,index_is_id=True)

db.set_custom(book_id, value, label=label, commit=True)
Where label is the # name, like #wordcount, or whatever you set it to.

(added) And, of course, you can use the custom column for the search instead of the regexps.

Last edited by JimmXinu; 10-21-2012 at 06:17 PM.
JimmXinu is offline   Reply With Quote