Commit f434511d authored by OzzieIsaacs's avatar OzzieIsaacs

Fixed lout issue with redirects

fixed database migration problem which was introduced with the shelf order commit
parent cf01f7ce
...@@ -179,7 +179,7 @@ def migrate_Database(): ...@@ -179,7 +179,7 @@ def migrate_Database():
session.commit() session.commit()
except exc.OperationalError: # Database is not compatible, some rows are missing except exc.OperationalError: # Database is not compatible, some rows are missing
conn = engine.connect() conn = engine.connect()
conn.execute("ALTER TABLE book_shelf_link ADD column order INTEGER DEFAULT 1") conn.execute("ALTER TABLE book_shelf_link ADD column `order` INTEGER DEFAULT 1")
session.commit() session.commit()
......
...@@ -164,7 +164,8 @@ app.secret_key = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT' ...@@ -164,7 +164,8 @@ app.secret_key = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT'
LANGUAGES = { LANGUAGES = {
'en': 'English', 'en': 'English',
'de': 'Deutsch', 'de': 'Deutsch',
'fr': 'Français' 'fr': 'Français',
'es': 'Español'
} }
...@@ -1190,7 +1191,7 @@ def login(): ...@@ -1190,7 +1191,7 @@ def login():
def logout(): def logout():
if current_user is not None and current_user.is_authenticated: if current_user is not None and current_user.is_authenticated:
logout_user() logout_user()
return redirect(url_for("index", _external=True)) return redirect('/login' or url_for("login", _external=True))
@app.route('/send/<int:book_id>') @app.route('/send/<int:book_id>')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment