aboutsummaryrefslogtreecommitdiffstats
path: root/firefly_cli
diff options
context:
space:
mode:
Diffstat (limited to 'firefly_cli')
-rw-r--r--firefly_cli/commands/transaction.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/firefly_cli/commands/transaction.py b/firefly_cli/commands/transaction.py
index 7d48f78..be8d281 100644
--- a/firefly_cli/commands/transaction.py
+++ b/firefly_cli/commands/transaction.py
@@ -45,7 +45,8 @@ def cmd_add(args, ctx):
"destination_id": dst["id"],
}
if args.category:
- split["category_name"] = ctx.resolver.category(args.category).get("name", args.category)
+ # Pass name raw; Firefly auto-creates the category if it doesn't exist.
+ split["category_name"] = args.category
if args.tags:
split["tags"] = [t.strip() for t in args.tags.split(",") if t.strip()]
resp = ctx.client.request("POST", "/api/v1/transactions",