From a35546e53d7b494f306ac50118271a20610eed6e Mon Sep 17 00:00:00 2001 From: Jonathan Golder Date: Sun, 7 Mar 2021 11:48:07 +0100 Subject: [PATCH] Fix removed pywikibot config property db_hostname https://phabricator.wikimedia.org/rPWBC2d73643f70a3f3289ff83e7ec142727d79d2649c --- README.md | 3 +++ lib/mysqlred.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3e6058f..65b6589 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,9 @@ Those can be installed using pip and the _requirements.txt_ file provided with t Versions -------- +* v1.2.2 + - Fix removed pywikibot config property db_hostname + * v1.2.1 - Fix [#72](https://git.golderweb.de/wiki/jogobot-red/issues/72) diff --git a/lib/mysqlred.py b/lib/mysqlred.py index 9b0c2e5..1b0148c 100644 --- a/lib/mysqlred.py +++ b/lib/mysqlred.py @@ -49,7 +49,7 @@ Base = declarative_base() url = URL( "mysql+pymysql", username=config.db_username, password=config.db_password, - host=config.db_hostname, + host=config.db_hostname_format.format('tools'), port=config.db_port, database=( config.db_username + jogobot.config['redundances']['db_suffix'] ),