diff options
author | emkael <emkael@tlen.pl> | 2019-12-31 13:19:17 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-12-31 13:19:17 +0100 |
commit | 009c26df9ccc65e3c58f62154a63498debd8e5b3 (patch) | |
tree | a229828ccbabb32bd9b791d90e33319183f99b7b | |
parent | 0dbd267f480453b5fa653d0f119a9d6e4b7bf648 (diff) |
Default value for MySQL port number
-rw-r--r-- | jfr_playoff/db.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jfr_playoff/db.py b/jfr_playoff/db.py index b85c5a4..0b7713d 100644 --- a/jfr_playoff/db.py +++ b/jfr_playoff/db.py @@ -16,7 +16,7 @@ class PlayoffDB(object): user=settings['user'], password=settings['pass'], host=settings['host'], - port=settings['port']) + port=settings.get('port', 3306)) PlayoffLogger.get('db').info('db settings: %s', settings) self.db_cursor = self.database.cursor(buffered=True) |