From b903410030f228a1a0531066604230cedc7b7061 Mon Sep 17 00:00:00 2001 From: Anton Zadvorny Date: Wed, 22 Jan 2020 14:45:19 +0300 Subject: [PATCH] Parse DB_PORT as integer --- gtfs2qr/gtfs2qr/gtfs2qr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtfs2qr/gtfs2qr/gtfs2qr.py b/gtfs2qr/gtfs2qr/gtfs2qr.py index 2826185..699df0b 100644 --- a/gtfs2qr/gtfs2qr/gtfs2qr.py +++ b/gtfs2qr/gtfs2qr/gtfs2qr.py @@ -14,7 +14,7 @@ from PIL import ImageFont, ImageDraw DB_HOST = os.getenv('DB_HOST', 'default') -DB_PORT = os.getenv('DB_PORT', 'default') +DB_PORT = int(os.getenv('DB_PORT', 3306)) DB_NAME = os.getenv('DB_NAME', 'default') DB_USER = os.getenv('DB_USER', 'default') DB_PASS = os.getenv('DB_PASS', 'default')