fix: pre-commit hook error and formatting issues

This commit is contained in:
fusion44 2022-06-17 21:35:35 +02:00
parent b318a494fc
commit 778139d74c
No known key found for this signature in database
GPG key ID: 645FA807E935D9D5
5 changed files with 15 additions and 10 deletions

View file

@ -11,7 +11,7 @@ repos:
- id: debug-statements
- id: mixed-line-ending
- repo: https://github.com/psf/black
rev: 21.9b0
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort

View file

@ -45,7 +45,6 @@ try:
"""
Server.handle_exit = original_handler
except ModuleNotFoundError as e:
_log = logging.getLogger(__name__)
# logging.basicConfig(level=logging.INFO)

View file

@ -16,6 +16,7 @@ SHELL_SCRIPT_PATH = config("shell_script_path")
node_type = config("ln_node")
async def get_app_status_single(app_iD):
if app_iD not in available_app_ids:
@ -108,13 +109,17 @@ async def get_app_status():
for appID in available_app_ids:
# skip app based on node running
if node_type=="" or node_type=="none":
if appID=="rtl": continue
if appID=="lnbits": continue
if appID=="thunderhub": continue
elif node_type=="cln_grpc":
if appID=="thunderhub": continue
#elif node_type="lnd_grpc":
if node_type == "" or node_type == "none":
if appID == "rtl":
continue
if appID == "lnbits":
continue
if appID == "thunderhub":
continue
elif node_type == "cln_grpc":
if appID == "thunderhub":
continue
# elif node_type="lnd_grpc":
# get status (installed, etc) and append
appStatusList.append(await get_app_status_single(appID))

View file

@ -21,7 +21,7 @@ SHELL_SCRIPT_PATH = config("shell_script_path")
async def get_system_info_impl() -> SystemInfo:
lightning = await redis_get("lightning")
if lightning=="" or lightning=="none":
if lightning == "" or lightning == "none":
data_chain = await redis_get("chain")
data_chain = f"{data_chain}net"
data_alias = await redis_get("hostname")

View file

@ -40,6 +40,7 @@ async def get_full_client_warmup_data() -> List:
)
return [*res]
async def get_full_client_warmup_data_bitcoinonly() -> List:
"""Get the full data set needed without Lightning available"""