mirror of
https://github.com/cve-search/cpe-guesser.git
synced 2024-11-24 07:47:23 +00:00
chg: [code] black
This commit is contained in:
parent
3a487c078a
commit
a228c7b25b
2 changed files with 4 additions and 7 deletions
|
@ -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 = ""
|
||||
|
|
|
@ -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__))
|
||||
|
|
Loading…
Reference in a new issue