mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-17 12:26:11 +02:00
fix: pre-commit hook error and formatting issues
This commit is contained in:
parent
b318a494fc
commit
778139d74c
5 changed files with 15 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
1
app/external/sse_starlette/sse_starlette.py
vendored
1
app/external/sse_starlette/sse_starlette.py
vendored
|
|
@ -45,7 +45,6 @@ try:
|
|||
"""
|
||||
Server.handle_exit = original_handler
|
||||
|
||||
|
||||
except ModuleNotFoundError as e:
|
||||
_log = logging.getLogger(__name__)
|
||||
# logging.basicConfig(level=logging.INFO)
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue