Mas correciones menores para testing.

This commit is contained in:
pablomartincalvo 2018-11-02 19:21:52 +01:00
parent 906d8b5cd9
commit 94b604997c
4 changed files with 245 additions and 232 deletions

View file

@ -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'}}

View file

@ -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)