mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Take out debugging return from cli restore_db
Add restore UUID to recover.py
This commit is contained in:
parent
7fb8f74c16
commit
bdfb1cf643
@ -989,7 +989,6 @@ def command_restore_database(args, dbpath):
|
||||
parser.print_help()
|
||||
return 1
|
||||
|
||||
return
|
||||
if opts.library_path is not None:
|
||||
dbpath = opts.library_path
|
||||
|
||||
|
@ -200,6 +200,8 @@ class Restore(Thread):
|
||||
def restore_book(self, book, db):
|
||||
db.create_book_entry(book['mi'], add_duplicates=True,
|
||||
force_id=book['id'])
|
||||
if book['mi'].uuid:
|
||||
db.set_uuid(book['id'], book['mi'].uuid, commit=False, notify=False)
|
||||
db.conn.execute('UPDATE books SET path=? WHERE id=?', (book['path'],
|
||||
book['id']))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user