From a228c7b25bcb013cd087af3bc1ca9b1dca851ab3 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Wed, 9 Aug 2023 15:21:05 +0200 Subject: [PATCH] chg: [code] black --- bin/import.py | 7 +++---- bin/server.py | 4 +--- 2 files changed, 4 insertions(+), 7 deletions(-) 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__))