chg: [code] black

This commit is contained in:
Alexandre Dulaunoy 2023-08-09 15:21:05 +02:00
parent 3a487c078a
commit a228c7b25b
Signed by: adulau
GPG key ID: 09E2CD4944E6CBCD
2 changed files with 4 additions and 7 deletions

View file

@ -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 = ""

View file

@ -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__))