Mas correciones menores para testing.
This commit is contained in:
parent
94b604997c
commit
403bb2c0cc
4 changed files with 155 additions and 156 deletions
|
|
@ -16,7 +16,7 @@ def alert_master(header, message):
|
|||
|
||||
msg.attach(MIMEText(message, 'plain'))
|
||||
|
||||
server = smtplib.SMTP('smtp.gmail.com: 587')
|
||||
server = smtplib.SMTP('smtp.gmail.com: 465')
|
||||
|
||||
server.starttls()
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import datetime
|
|||
databases = {'dev':{'host': 'dev_drogon_db',
|
||||
'user': 'drogon',
|
||||
'password': 'noesfacilvivirsindrogon'},
|
||||
'tst':{'host': 'tst_drogon_db',
|
||||
'tst':{'host': '46.183.114.164',
|
||||
'user': 'drogon',
|
||||
'password': 'noesfacilvivirsindrogon'},
|
||||
'prd':{'host': 'prd_drogon_db',
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class DatabaseWrapper():
|
|||
database = self.database,
|
||||
user = self.user,
|
||||
password = self.password,
|
||||
autocommit = True)
|
||||
autocommit = False)
|
||||
|
||||
def disconnect(self):
|
||||
if self.connection.is_connected():
|
||||
|
|
@ -38,8 +38,10 @@ class DatabaseWrapper():
|
|||
self.connect()
|
||||
if self.connection.is_connected():
|
||||
try:
|
||||
execution_cursor = self.connection.cursor(dictionary = dictionary)
|
||||
execution_cursor = self.connection.cursor(dictionary=dictionary,
|
||||
buffered=True)
|
||||
execution_cursor.execute(query_statement, query_parameters)
|
||||
self.connection.commit()
|
||||
self.disconnect()
|
||||
return execution_cursor
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue