mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-25 14:03:32 +02:00
...
This commit is contained in:
commit
835994dccd
1 changed files with 4 additions and 0 deletions
|
|
@ -2728,6 +2728,10 @@ def delete_custom_book_data(self, book_id, name):
|
|||
(book_id, name))
|
||||
self.commit()
|
||||
|
||||
def get_ids_for_custom_book_data(self, name):
|
||||
s = self.conn.get('''SELECT book FROM books_plugin_data WHERE name=?''', (name,))
|
||||
return [x[0] for x in s]
|
||||
|
||||
def get_custom_recipes(self):
|
||||
for id, title, script in self.conn.get('SELECT id,title,script FROM feeds'):
|
||||
yield id, title, script
|
||||
|
|
|
|||
Loading…
Reference in a new issue