From 7a82bb88f8a6ee3b91718f40e2eba77e7850c53b Mon Sep 17 00:00:00 2001 From: "LAPTOP-8G8AGL8G\\yotam" Date: Sat, 9 Nov 2024 15:42:18 +0200 Subject: [PATCH] bug: no .env default category behavior Fix behavior when no default category parameter in .env file to correctly use splitwise category --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index f5181bc..82a0a87 100644 --- a/main.py +++ b/main.py @@ -24,7 +24,7 @@ def load_config() -> Config: "SPLITWISE_TOKEN": os.getenv("SPLITWISE_TOKEN"), "FIREFLY_URL": os.getenv("FIREFLY_URL", "http://firefly:8080"), "FIREFLY_TOKEN": os.getenv("FIREFLY_TOKEN"), - "FIREFLY_DEFAULT_CATEGORY": os.getenv("FIREFLY_DEFAULT_CATEGORY", "Uncategorized"), + "FIREFLY_DEFAULT_CATEGORY": os.getenv("FIREFLY_DEFAULT_CATEGORY"), "FIREFLY_DEFAULT_SPEND_ACCOUNT": os.getenv("FIREFLY_DEFAULT_SPEND_ACCOUNT", "Amex"), "FIREFLY_DEFAULT_TRXFR_ACCOUNT": os.getenv("FIREFLY_DEFAULT_TRXFR_ACCOUNT", "Chase Checking"), "FIREFLY_DRY_RUN": bool(os.getenv("FIREFLY_DRY_RUN", True)),