mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-14 12:02:46 +02:00
filter apps for core lightning & bitcoin-only
This commit is contained in:
parent
67a9242301
commit
cc05605853
1 changed files with 13 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ from app.utils import SSE, call_script, parse_key_value_text, send_sse_message
|
|||
|
||||
SHELL_SCRIPT_PATH = config("shell_script_path")
|
||||
|
||||
node_type = config("ln_node")
|
||||
|
||||
async def get_app_status_single(app_iD):
|
||||
|
||||
|
|
@ -105,7 +106,19 @@ async def get_app_status_single(app_iD):
|
|||
async def get_app_status():
|
||||
appStatusList: Array = []
|
||||
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":
|
||||
|
||||
# get status (installed, etc) and append
|
||||
appStatusList.append(await get_app_status_single(appID))
|
||||
|
||||
return appStatusList
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue