diff --git a/cps/editbooks.py b/cps/editbooks.py index 91134db6..6e06e053 100644 --- a/cps/editbooks.py +++ b/cps/editbooks.py @@ -689,8 +689,7 @@ def upload(): db.session.commit() db.update_title_sort(config) book = db.session.query(db.Books).filter(db.Books.id == book_id).filter(common_filters()).first() - - # upload book to gdrive if nesseccary and add "(bookid)" to folder name + # upload book to gdrive if necessary and add "(bookid)" to folder name if config.config_use_google_drive: gdriveutils.updateGdriveCalibreFromLocal() error = helper.update_dir_stucture(book.id, config.config_calibre_dir) diff --git a/cps/templates/user_edit.html b/cps/templates/user_edit.html index 77c78783..926657bc 100644 --- a/cps/templates/user_edit.html +++ b/cps/templates/user_edit.html @@ -14,7 +14,7 @@ {% if ( g.user and g.user.role_passwd() or g.user.role_admin() ) and not content.role_anonymous() %} - {% if g.user and g.user.role_admin() and not new_user and not profile and ( mail_configured and content.email if content.email != None %} + {% if g.user and g.user.role_admin() and not new_user and not profile and ( mail_configured and content.email if content.email != None ) %}
{% endif %}