diff --git a/.gitignore b/.gitignore index efaf132..916a053 100644 --- a/.gitignore +++ b/.gitignore @@ -58,4 +58,6 @@ typings/ .env # config files -config.json \ No newline at end of file +config.json + +ghstatsAPIKEY.json diff --git a/backend/.dockerignore b/backend/.dockerignore index 2eea525..f7d9dc9 100644 --- a/backend/.dockerignore +++ b/backend/.dockerignore @@ -1 +1,4 @@ -.env \ No newline at end of file +.env +.env.cloud +.env.template +ghstatsAPIKEY.json diff --git a/backend/ghstats.py b/backend/ghstats.py index 91c54ab..9064abd 100644 --- a/backend/ghstats.py +++ b/backend/ghstats.py @@ -148,7 +148,8 @@ def setuserrole(email=None): # there should be exactly one matching row flask.session['userrole']=row[0] except: - pass + app.logger.error("Db2 error") + raise return flask.session['userrole'] # Check for userrole diff --git a/backend/requirements.txt b/backend/requirements.txt index 9119145..d7fb034 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -1,6 +1,6 @@ flask_talisman==0.7.0 Flask_SQLAlchemy==2.4.4 -flask==1.1.1 +Flask==1.1.1 requests==2.20.0 Flask_pyoidc==3.7.0 githubpy