Skip to content

Commit

Permalink
reset local credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
DouglasCorreiaBrito committed Oct 25, 2020
1 parent 82713a8 commit 7195655
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ celerybeat.pid
.venv
env/
venv/
static/images/
ENV/
env.bak/
venv.bak/
Expand Down
13 changes: 4 additions & 9 deletions db_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@
import Result
import os

#database_host = os.environ['MYSQL_TCC_HOST']
#database_name = os.environ['MYSQL_TCC_NAME']
#database_user = os.environ['MYSQL_TCC_USER']
#database_pass = os.environ['MYSQL_TCC_PASS']

database_host = 'localhost'
database_name = 'db_sentimentalizer'
database_user = 'admin'
database_pass = 'bcg-e2643B'
database_host = os.environ['MYSQL_TCC_HOST']
database_name = os.environ['MYSQL_TCC_NAME']
database_user = os.environ['MYSQL_TCC_USER']
database_pass = os.environ['MYSQL_TCC_PASS']

def get_connection():
mydb = mysql.connector.connect(
Expand Down
8 changes: 4 additions & 4 deletions tauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import os
import keys

CONSUMER_KEY = keys.CONSUMER_KEY
CONSUMER_SECRET = keys.CONSUMER_SECRET
#CONSUMER_KEY = keys.CONSUMER_KEY
#CONSUMER_SECRET = keys.CONSUMER_SECRET

#CONSUMER_KEY = os.environ['CONSUMER_KEY']
#CONSUMER_SECRET = os.environ['CONSUMER_SECRET']
CONSUMER_KEY = os.environ['CONSUMER_KEY']
CONSUMER_SECRET = os.environ['CONSUMER_SECRET']


def get_bearer_token():
Expand Down

0 comments on commit 7195655

Please sign in to comment.