Compare commits
2 Commits
ace5195164
...
92f8493f86
| Author | SHA1 | Date | |
|---|---|---|---|
| 92f8493f86 | |||
| 7f837b849f |
@ -69,11 +69,11 @@ class Categorizer:
|
||||
):
|
||||
transaction.category = t.TransactionCategory(
|
||||
name="null",
|
||||
selector=t.CategorySelector(t.Selector_T.nullifier),
|
||||
selector=t.CategorySelector(t.Selector.nullifier),
|
||||
)
|
||||
cancel.category = t.TransactionCategory(
|
||||
name="null",
|
||||
selector=t.CategorySelector(t.Selector_T.nullifier),
|
||||
selector=t.CategorySelector(t.Selector.nullifier),
|
||||
)
|
||||
matching.extend([transaction, cancel])
|
||||
count += 2
|
||||
@ -109,10 +109,10 @@ class Categorizer:
|
||||
== "y"
|
||||
):
|
||||
transaction.category.name = category.name
|
||||
transaction.category.selector.selector = t.Selector_T.rules
|
||||
transaction.category.selector.selector = t.Selector.rules
|
||||
else:
|
||||
transaction.category = t.TransactionCategory(
|
||||
category.name, t.CategorySelector(t.Selector_T.rules)
|
||||
category.name, t.CategorySelector(t.Selector.rules)
|
||||
)
|
||||
|
||||
if rule in d:
|
||||
@ -165,7 +165,7 @@ class Categorizer:
|
||||
print("{category} doesn't exist")
|
||||
continue
|
||||
transaction.category = t.TransactionCategory(
|
||||
category, t.CategorySelector(t.Selector_T.manual)
|
||||
category, t.CategorySelector(t.Selector.manual)
|
||||
)
|
||||
|
||||
break
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user