Skip to content

Commit

Permalink
include sync
Browse files Browse the repository at this point in the history
  • Loading branch information
gilgamezh committed Apr 2, 2024
1 parent 93e59b5 commit 9264973
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ficamp/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import argparse
from collections import defaultdict
from decimal import Decimal

import questionary
from dotenv import load_dotenv
Expand Down Expand Up @@ -39,6 +40,10 @@ def cli() -> argparse.Namespace:
)
categorize_parser.set_defaults(func=categorize)

# Subparser for the sync command
categorize_parser = subparsers.add_parser("sync", help="Report transactions")
categorize_parser.set_defaults(func=sync)

args = parser.parse_args()

return args
Expand Down Expand Up @@ -116,7 +121,7 @@ def query_business_category(tx, session):
return answer


def categorize(engine):
def categorize(args, engine):
"""Classify transactions into categories"""
try:
with Session(engine) as session:
Expand Down

0 comments on commit 9264973

Please sign in to comment.