From f767e417552de228f24260752419b154fad99c16 Mon Sep 17 00:00:00 2001 From: niftynei Date: Tue, 19 Jul 2022 17:04:36 +0930 Subject: [PATCH] bkpr: listbalances, skip the external account it's essentialy meaningless --- plugins/bkpr/bookkeeper.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/bkpr/bookkeeper.c b/plugins/bkpr/bookkeeper.c index b0464f3e1..40388a7e7 100644 --- a/plugins/bkpr/bookkeeper.c +++ b/plugins/bkpr/bookkeeper.c @@ -207,6 +207,11 @@ static struct command_result *json_list_balances(struct command *cmd, " for account %s: %s", accts[i]->name, err); + /* Skip the external acct balance, it's effectively + * meaningless */ + if (streq(accts[i]->name, EXTERNAL_ACCT)) + continue; + /* Add it to the result data */ json_object_start(res, NULL);