Parse DB_PORT as integer

This commit is contained in:
Anton Zadvorny 2020-01-22 14:45:19 +03:00
parent 2878fee9ae
commit b903410030

View File

@ -14,7 +14,7 @@ from PIL import ImageFont, ImageDraw
DB_HOST = os.getenv('DB_HOST', 'default') 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_NAME = os.getenv('DB_NAME', 'default')
DB_USER = os.getenv('DB_USER', 'default') DB_USER = os.getenv('DB_USER', 'default')
DB_PASS = os.getenv('DB_PASS', 'default') DB_PASS = os.getenv('DB_PASS', 'default')