Skip to content

Commit

Permalink
chg: [code] black
Browse files Browse the repository at this point in the history
  • Loading branch information
adulau committed Aug 9, 2023
1 parent 3a487c0 commit a228c7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 3 additions & 4 deletions bin/import.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@
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 = ""
Expand Down
4 changes: 1 addition & 3 deletions bin/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
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__))
Expand Down

0 comments on commit a228c7b

Please sign in to comment.