mirror of
https://github.com/cve-search/cpe-guesser.git
synced 2024-11-24 15:57:22 +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
|
from dynaconf import Dynaconf
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
settings = Dynaconf(
|
settings = Dynaconf(settings_files=['../config/settings.yaml'])
|
||||||
settings_files=['../config/settings.yaml']
|
|
||||||
)
|
|
||||||
cpe_path = settings.cpe.path
|
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)
|
rdb = redis.Redis(host=settings.redis.host, port=settings.redis.port, db=8)
|
||||||
|
|
||||||
|
|
||||||
class CPEHandler(xml.sax.ContentHandler):
|
class CPEHandler(xml.sax.ContentHandler):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.cpe = ""
|
self.cpe = ""
|
||||||
|
|
|
@ -9,9 +9,7 @@ import json
|
||||||
from dynaconf import Dynaconf
|
from dynaconf import Dynaconf
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
settings = Dynaconf(
|
settings = Dynaconf(settings_files=['../config/settings.yaml'])
|
||||||
settings_files=['../config/settings.yaml']
|
|
||||||
)
|
|
||||||
port = settings.server.port
|
port = settings.server.port
|
||||||
|
|
||||||
runPath = os.path.dirname(os.path.realpath(__file__))
|
runPath = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
|
Loading…
Reference in a new issue