diff options
Diffstat (limited to 'firefly_cli/resolver.py')
| -rw-r--r-- | firefly_cli/resolver.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firefly_cli/resolver.py b/firefly_cli/resolver.py index 53144e1..cb7e9a8 100644 --- a/firefly_cli/resolver.py +++ b/firefly_cli/resolver.py @@ -48,6 +48,10 @@ class Resolver: # transaction), so we resolve to an id. A numeric-looking ref goes # straight to the show endpoint (lets same-name-safe callers pin an id); # otherwise match by name against the list. + # ponytail: sniffing digits makes a budget literally named "7" + # unreachable by name (same lossy tradeoff ISSUES.md #2 hit for + # accounts). All-digit budget names are rare; add a --budget-id flag to + # tx add if this ever bites, mirroring --from-id/--to-id. if str(name_or_id).isdigit(): return self.budget_by_id(name_or_id) return self._match("budget", self._list("/api/v1/budgets"), name_or_id) |
