lnbits/extensions/streamalerts/views_api.py
async def api_get_services(g: WalletTypeInfo = Depends(get_key_type)):
    """Return list of all services assigned to wallet with given invoice key"""
    wallet_ids = (await get_user(g.wallet.user)).wallet_ids
    services = []
    for wallet_id in wallet_ids:
        new_services = await get_services(wallet_id)
        services += new_services if new_services else []
    return [service.dict() for service in services] if services else []
Return list of all services assigned to wallet with given invoice key
Return list of all services assigned to wallet with given invoice key
Return list of all services assigned to wallet with given invoice key
async def api_get_services(g: WalletTypeInfo = Depends(get_key_type)):
    wallet_ids = (await get_user(g.wallet.user)).wallet_ids
    services = []
    for wallet_id in wallet_ids:
        new_services = await get_services(wallet_id)
        services += new_services if new_services else []
    return [service.dict() for service in services] if services else []
async def api_get_services ( g : WalletTypeInfo = Depends ( get_key_type ) ) : wallet_ids = ( await get_user ( g . wallet . user ) ) . wallet_ids services = [ ] for wallet_id in wallet_ids : new_services = await get_services ( wallet_id ) services += new_services if new_services else [ ] return [ service . dict ( ) for service in services ] if services else [ ]
Return list of all services assigned to wallet with given invoice key
Return list of all services assigned to wallet with given invoice key
"""Return list of all services assigned to wallet with given invoice key"""
g
WalletTypeInfo