File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 55from argparse import ArgumentParser
66from pathlib import Path
77
8+ from brbanks2ynab .config .config import ImporterConfig
89from brbanks2ynab .config .initialize import init_config
910from brbanks2ynab .sync .sync import sync
10- from config .config import ImporterConfig
1111
1212
1313def _default_config_path ():
Original file line number Diff line number Diff line change 1111from brbanks2ynab .ynab .ynab_transaction_importer import YNABTransactionImporter
1212
1313logger = logging .getLogger ('brbanks2ynab' )
14+ logger .setLevel (logging .DEBUG )
1415
1516
1617def sync (config : ImporterConfig , dry : bool ):
@@ -28,8 +29,9 @@ def sync(config: ImporterConfig, dry: bool):
2829 ynab_importer .get_transactions_from (importer )
2930
3031 if dry :
31- logger .warning ('Dry running! No transactions will be imported into YNAB.' )
32+ logger .info ('Dry running! No transactions will be imported into YNAB.' )
3233 logger .info (f'{ len (ynab_importer .transactions )} would be imported into YNAB' )
34+
3335 with open ('import_result.json' , 'w' ) as f :
3436 data = [dataclasses .asdict (t ) for t in ynab_importer .transactions ]
3537 json .dump (data , f )
You can’t perform that action at this time.
0 commit comments