Source code for bw_hestia_bridge.strategies.generic

[docs] def drop_zeros(data: list) -> list: for ds in data: if "exchanges" in ds: ds["exchanges"] = [ exc for exc in ds["exchanges"] if ("amount" not in exc or exc["amount"] != 0) ] return data