diff --git a/bin/import.py b/bin/import.py index 8c91e34..ed947e6 100644 --- a/bin/import.py +++ b/bin/import.py @@ -13,13 +13,12 @@ import time from dynaconf import Dynaconf # Configuration -settings = Dynaconf( - settings_files=['../config/settings.yaml'] -) +settings = Dynaconf(settings_files=['../config/settings.yaml']) cpe_path = settings.cpe.path -cpe_source = (settings.cpe.source) +cpe_source = settings.cpe.source rdb = redis.Redis(host=settings.redis.host, port=settings.redis.port, db=8) + class CPEHandler(xml.sax.ContentHandler): def __init__(self): self.cpe = "" diff --git a/bin/server.py b/bin/server.py index 16b49f0..09bdffb 100644 --- a/bin/server.py +++ b/bin/server.py @@ -9,9 +9,7 @@ import json from dynaconf import Dynaconf # Configuration -settings = Dynaconf( - settings_files=['../config/settings.yaml'] -) +settings = Dynaconf(settings_files=['../config/settings.yaml']) port = settings.server.port runPath = os.path.dirname(os.path.realpath(__file__))