Skip to content

Commit 12d4f85

Browse files
authored
Fix check for empty category data (#42)
1 parent 28fa545 commit 12d4f85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlite_export_for_ynab/_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ async def sync(token: str, db: Path, full_refresh: bool) -> None:
152152

153153
if (
154154
not any(t["accounts"] for t in all_account_data)
155-
and not any(t["transactions"] for t in all_txn_data)
155+
and not any(t["category_groups"] for t in all_cat_data)
156156
and not any(p["payees"] for p in all_payee_data)
157157
and not any(t["transactions"] for t in all_txn_data)
158158
and not any(s["scheduled_transactions"] for s in all_sched_txn_data)

0 commit comments

Comments
 (0)