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