From e4d325955cf9d460f81a88490d85b480b772deb0 Mon Sep 17 00:00:00 2001 From: Dennis Date: Mon, 14 Jan 2019 23:59:59 +0100 Subject: [PATCH] Event plugin was missing host entry for MySQL connection --- plugins/admidio_events/admidio_events.py | 3 ++- plugins/admidio_events/config.hjson.example | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/admidio_events/admidio_events.py b/plugins/admidio_events/admidio_events.py index ef371e6..79af503 100644 --- a/plugins/admidio_events/admidio_events.py +++ b/plugins/admidio_events/admidio_events.py @@ -61,7 +61,8 @@ class Plugin: return mysql.connect( user = self.config['database_credentials']['username'], password = self.config['database_credentials']['password'], - database = self.config['database_credentials']['database']) + database = self.config['database_credentials']['database'], + host = self.config['database_credentials']['host']) def check_new_event_thread(self): diff --git a/plugins/admidio_events/config.hjson.example b/plugins/admidio_events/config.hjson.example index 942ef89..b6f939e 100644 --- a/plugins/admidio_events/config.hjson.example +++ b/plugins/admidio_events/config.hjson.example @@ -2,7 +2,8 @@ "database_credentials": { "username": "", "password": "", - "database": "" + "database": "", + "host": "" }, "cat_id_room_mapping": [ [[], ""],