Skip to content

Commit

Permalink
Made changes ready for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jaykay12 committed May 12, 2020
1 parent 6017958 commit 1641ec5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions service/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ def create_app():
"""Loading configuratons."""
if environ.get('ENV') == 'PRODUCTION':
app.config.from_object('config.ProductionConfig')
app.config.from_object('config.oAuthConfig')
accesslogger.info("Loaded: Configuration of Production")
elif environ.get('ENV') == 'STAGE':
app.config.from_object('config.StageConfig')
app.config.from_object('config.oAuthConfig')
accesslogger.info("Loaded: Configuration of Stage")
elif environ.get('ENV') == 'TESTING':
app.config.from_object('config.TestConfig')
Expand All @@ -33,6 +35,7 @@ def create_app():
with app.app_context():
from . import routes_auth
from . import routes_oauth
db.drop_all()
db.create_all()

return app
Expand Down
1 change: 0 additions & 1 deletion service/api/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ def callback(self):
)

me = oauth_session.get('account/verify_credentials.json').json()
print(me)

return ('twitter$' + str(me['id']), me['screen_name'], None)

Expand Down

0 comments on commit 1641ec5

Please sign in to comment.