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