|
|
@ -2443,7 +2443,10 @@ def edit_book(book_id):
|
|
|
|
for author in book.authors:
|
|
|
|
for author in book.authors:
|
|
|
|
author_names.append(author.name)
|
|
|
|
author_names.append(author.name)
|
|
|
|
for b in edited_books_id:
|
|
|
|
for b in edited_books_id:
|
|
|
|
helper.update_dir_stucture(b, config.config_calibre_dir)
|
|
|
|
if config.config_use_google_drive:
|
|
|
|
|
|
|
|
helper.update_dir_structure_gdrive(b)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
helper.update_dir_stucture(b, config.config_calibre_dir)
|
|
|
|
if config.config_use_google_drive:
|
|
|
|
if config.config_use_google_drive:
|
|
|
|
updateGdriveCalibreFromLocal()
|
|
|
|
updateGdriveCalibreFromLocal()
|
|
|
|
if "detail_view" in to_save:
|
|
|
|
if "detail_view" in to_save:
|
|
|
@ -2538,8 +2541,7 @@ def upload():
|
|
|
|
for author in db_book.authors:
|
|
|
|
for author in db_book.authors:
|
|
|
|
author_names.append(author.name)
|
|
|
|
author_names.append(author.name)
|
|
|
|
if config.config_use_google_drive:
|
|
|
|
if config.config_use_google_drive:
|
|
|
|
if not current_user.role_edit() and not current_user.role_admin():
|
|
|
|
updateGdriveCalibreFromLocal()
|
|
|
|
updateGdriveCalibreFromLocal()
|
|
|
|
|
|
|
|
cc = db.session.query(db.Custom_Columns).filter(db.Custom_Columns.datatype.notin_(db.cc_exceptions)).all()
|
|
|
|
cc = db.session.query(db.Custom_Columns).filter(db.Custom_Columns.datatype.notin_(db.cc_exceptions)).all()
|
|
|
|
if current_user.role_edit() or current_user.role_admin():
|
|
|
|
if current_user.role_edit() or current_user.role_admin():
|
|
|
|
return render_title_template('book_edit.html', book=db_book, authors=author_names, cc=cc,
|
|
|
|
return render_title_template('book_edit.html', book=db_book, authors=author_names, cc=cc,
|
|
|
|