diff --git a/actual/__init__.py b/actual/__init__.py index d6e3149..cab6794 100644 --- a/actual/__init__.py +++ b/actual/__init__.py @@ -405,6 +405,7 @@ def run_bank_sync( accounts = [account] imported_transactions = [] + default_start_date = start_date for acct in accounts: sync_method = acct.account_sync_source account_id = acct.account_id @@ -419,8 +420,6 @@ def run_bank_sync( default_start_date = all_transactions[0].get_date() else: default_start_date = datetime.date.today() - datetime.timedelta(days=90) - else: - default_start_date = start_date transactions = self._run_bank_sync_account(acct, default_start_date) imported_transactions.extend(transactions) return imported_transactions diff --git a/codecov.yaml b/codecov.yaml new file mode 100644 index 0000000..5077db3 --- /dev/null +++ b/codecov.yaml @@ -0,0 +1,5 @@ +coverage: + status: + project: + default: + threshold: 5%