From 65d9ea115b9bcea10867e40f7124261c6a0ed3a2 Mon Sep 17 00:00:00 2001 From: Brunno Vanelli Date: Sun, 23 Jun 2024 13:19:38 +0200 Subject: [PATCH] ci: Try and make codecov more flexible. --- actual/__init__.py | 3 +-- codecov.yaml | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 codecov.yaml 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%