Mas correciones menores para testing.
This commit is contained in:
parent
906d8b5cd9
commit
94b604997c
4 changed files with 245 additions and 232 deletions
|
|
@ -1,5 +1,5 @@
|
|||
from os import environ
|
||||
from datetime import datetime
|
||||
import datetime
|
||||
|
||||
databases = {'dev':{'host': 'dev_drogon_db',
|
||||
'user': 'drogon',
|
||||
|
|
@ -10,7 +10,7 @@ databases = {'dev':{'host': 'dev_drogon_db',
|
|||
'prd':{'host': 'prd_drogon_db',
|
||||
'user': 'drogon',
|
||||
'password': 'noesfacilvivirsindrogon'},
|
||||
'default'{'host': 'tst_drogon_db',
|
||||
'default':{'host': 'tst_drogon_db',
|
||||
'user': 'drogon',
|
||||
'password': 'noesfacilvivirsindrogon'}}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import mysql.connector
|
|||
from core.alerts import alert_master
|
||||
from core.config import current_db_parameters
|
||||
|
||||
anuncios_db_parameters = current_db_parameters.update({'database': 'anuncios'})
|
||||
tasks_db_parameters = current_db_parameters.update({'database': 'tasks'})
|
||||
anuncios_db_parameters = {'database': 'anuncios', **current_db_parameters}
|
||||
tasks_db_parameters = {'database': 'tasks', **current_db_parameters}
|
||||
|
||||
class DatabaseWrapper():
|
||||
|
||||
|
|
@ -63,6 +63,7 @@ class DatabaseWrapper():
|
|||
def get_anunciosdb():
|
||||
return DatabaseWrapper(anuncios_db_parameters)
|
||||
|
||||
|
||||
def get_tasksdb():
|
||||
return DatabaseWrapper(tasks_db_parameters)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue