Use own db for red-task

Since we have several tables and sometimes need to create a copy on
replication servers.
This commit is contained in:
2017-11-05 12:17:05 +01:00
parent b4c193eedc
commit 1b6faf9e53

View File

@@ -51,7 +51,8 @@ url = URL( "mysql+pymysql",
password=config.db_password,
host=config.db_hostname,
port=config.db_port,
database=config.db_username + jogobot.config['db_suffix'],
database=( config.db_username +
jogobot.config['redundances']['db_suffix'] ),
query={'charset': 'utf8'} )
engine = create_engine(url, echo=False)