From dbf7c394006da96a3e4322636255dc4f786f5faf Mon Sep 17 00:00:00 2001 From: Mark Cotton Date: Wed, 6 Sep 2023 21:52:07 -0500 Subject: [PATCH] fixed login and moved up to EagleEyev3 0.0.20 --- app.py | 8 ++++---- requirements.txt | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app.py b/app.py index 7930715..640f73a 100644 --- a/app.py +++ b/app.py @@ -240,10 +240,10 @@ def login_callback(): @app.route('/logout') def logout(): - # logout isn't working APIv3 right now so don't wait for the call to fail before logging out - # if 'een' in session: - # een = session['een'] - # een.logout() + if 'een' in session: + een = session['een'] + logging.debug(f"calling logout { een.access_token = }") + een.logout() session.pop('een') diff --git a/requirements.txt b/requirements.txt index d4cc766..7141644 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,8 +14,10 @@ Werkzeug==2.3.6 gunicorn==20.1.0 cachelib==0.10.2 Flask-Session==0.5.0 -EagleEyev3>=0.0.18 tqdm pandas numpy matplotlib +Flask-SQLAlchemy==3.0.5 +Flask-Migrate==4.0.4 +EagleEyev3>=0.0.20 \ No newline at end of file