From dd0ba6797410bc473758fa26660d6ee9a11d5dc4 Mon Sep 17 00:00:00 2001 From: minto Date: Mon, 8 Oct 2018 21:27:19 +0200 Subject: [PATCH] fix f8 linting + tests --- config.py | 12 ++++++------ gentelella.py | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/config.py b/config.py index 68a3f0b..f8de794 100644 --- a/config.py +++ b/config.py @@ -12,12 +12,12 @@ class ProductionConfig(Config): # PostgreSQL database SQLALCHEMY_DATABASE_URI = 'postgresql://{}:{}@{}:{}/{}'.format( - environ.get('GENTELELLA_DATABASE_USER', 'gentelella'), - environ.get('GENTELELLA_DATABASE_PASSWORD', 'gentelella'), - environ.get('GENTELELLA_DATABASE_HOST', 'db'), - environ.get('GENTELELLA_DATABASE_PORT', 5432), - environ.get('GENTELELLA_DATABASE_NAME', 'gentelella') - ) + environ.get('GENTELELLA_DATABASE_USER', 'gentelella'), + environ.get('GENTELELLA_DATABASE_PASSWORD', 'gentelella'), + environ.get('GENTELELLA_DATABASE_HOST', 'db'), + environ.get('GENTELELLA_DATABASE_PORT', 5432), + environ.get('GENTELELLA_DATABASE_NAME', 'gentelella') + ) class DebugConfig(Config): diff --git a/gentelella.py b/gentelella.py index 9edb703..79001a5 100644 --- a/gentelella.py +++ b/gentelella.py @@ -1,6 +1,5 @@ from flask_migrate import Migrate from os import environ -from pathlib import Path from sys import exit from config import config_dict