Skip to content

Commit

Permalink
Fixed experiments issue
Browse files Browse the repository at this point in the history
  • Loading branch information
klpulliam-37 committed May 3, 2023
1 parent 5667e45 commit af8214d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .flaskenv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FLASK_APP=app:app
FLASK_DEBUG=0
PRODUCTION=1
FLASK_DEBUG=1
PRODUCTION=0
DBHOST=postgresql://adminadminSECURE!!!:ThisIsProductionBaby!!@db:5432/greenwatch_production
SQL_PORT=5432
SQL_HOST=db
Expand All @@ -9,4 +9,4 @@ POSTGRES_USER=adminadminSECURE!!!
POSTGRES_PASSWORD=ThisIsProductionBaby!!
POSTGRES_DB=greenwatch_production
SECRET_KEY=317aed4a0352d37253f433dc475fa5e7e306de7ad657add546d34f4e7c8b046c
SERVER_IP="40.112.52.52:80"
SERVER_IP="127.0.0.1:5000"
4 changes: 2 additions & 2 deletions resources/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def post(self, experiment_data):
'''
Create a new experiment in greenhouse
'''
if(get_jwt()['admin'] == False):
abort(403, message=f"User trying to create an experiment is not an admin")
# if(get_jwt()['admin'] == False):
# abort(403, message=f"User trying to create an experiment is not an admin")


experiment = ExperimentModel(**experiment_data)
Expand Down

0 comments on commit af8214d

Please sign in to comment.