From 1e2d1e4119e94bc3b0e4ceb2f160e1899130cfd5 Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 1 Jul 2024 07:06:19 +0200 Subject: [PATCH] feat: add support for current balances in metrics Extended `get_transparency_data` function to allow current balances by adding an `allow_current` parameter. This change facilitates the inclusion of up-to-date balance information in the metrics output, enhancing the accuracy of financial reporting. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 41b1c40..694f5f4 100644 --- a/main.py +++ b/main.py @@ -107,7 +107,7 @@ def metrics(): (pathlib.Path(__file__).parent / "data" / "finances.json").read_text() ) - balances = get_transparency_data(finances)["end_balance"] + balances = get_transparency_data(finances, allow_current=True)["end_balance"] response = ( "# HELP privatecoffee_balance The balance of the private.coffee account\n"