View Single Post
Old 08-11-2010, 01:40 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Here you go:

Code:
calibre-debug -c "import cPickle, pprint; from calibre.library import db; db = db(); ans = [(d[0], cPickle.loads(bytes(d[1]))) for d in db.conn.get('SELECT id,data from conversion_options')]; print '\n\n'.join(['id: %s\n%s'%(id, d) for id, d in ans])"
kovidgoyal is offline   Reply With Quote