1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-26 10:00:37 +00:00

Revert the deletion of another line

This was done by mistake, whoops!
This commit is contained in:
Ryan Holmes 2020-08-09 00:57:30 -04:00 committed by GitHub
parent 704dcb3e58
commit 28bfb06c67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,6 +223,7 @@ def delete_book(book_id, book_format):
getattr(book, cc_string).remove(del_cc) getattr(book, cc_string).remove(del_cc)
log.debug('remove ' + str(c.id)) log.debug('remove ' + str(c.id))
calibre_db.session.delete(del_cc) calibre_db.session.delete(del_cc)
calibre_db.session.commit()
else: else:
modify_database_object([u''], getattr(book, cc_string), db.cc_classes[c.id], modify_database_object([u''], getattr(book, cc_string), db.cc_classes[c.id],
calibre_db.session, 'custom') calibre_db.session, 'custom')