Skip to content

Commit

Permalink
ci: Try and make codecov more flexible.
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanelli committed Jun 23, 2024
1 parent 4e3b5d5 commit 65d9ea1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions actual/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
5 changes: 5 additions & 0 deletions codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
coverage:
status:
project:
default:
threshold: 5%

0 comments on commit 65d9ea1

Please sign in to comment.