Skip to content

Commit

Permalink
prep for tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
data-henrik committed Feb 15, 2021
1 parent 297dc6d commit 915d028
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ typings/
.env

# config files
config.json
config.json

ghstatsAPIKEY.json
5 changes: 4 additions & 1 deletion backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
.env
.env
.env.cloud
.env.template
ghstatsAPIKEY.json
3 changes: 2 additions & 1 deletion backend/ghstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 915d028

Please sign in to comment.