feat: multi-account Fio sync + switch QR default to 2502035405/2010 #37
Reference in New Issue
Block a user
Delete Branch "feat/multi-account-bank-sync"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
2502035405/2010(CZ0820100000002502035405) to the sync pipeline. Both accounts are fetched on every run and combined before dedup — no schema change, no sheet migration.Go changes
config.go: hardcodedAccounts/LoadedAccountslice replaces scalarBankAccount+FioAPIToken.Config.BankAccountrenamed toConfig.QRAccount. Per-account tokens viaFIO_API_TOKEN_NEW/FIO_API_TOKEN_OLD(empty = transparent-scraper path).banksync.SyncToSheets: signature changed to[]fio.Client; loops to combine txns across accounts.cmd/fuj/main.go:buildFioClientshelper; bothsyncandserver BankSynccall sites updated.html_handler+build_adults/juniors: switched toConfig.QRAccount.TestSyncToSheets_MultiAccountverifies cross-account fetch + dedup.Python changes
config.py:ACCOUNTSlist +LOADED_ACCOUNTS(tokens resolved at import).fio_utils.py:fetch_transactions_for(per-account) +fetch_transactions_all(loops all accounts).sync_fio_to_sheets.py: usesfetch_transactions_all.Test plan
cd go && go test ./...— all greenpython -m unittest discover -s tests— all green (32 tests)./build/fuj sync --dry-run --print-fio-table --days 7— shows transactions from both accounts./build/fuj server→/qr?amount=700&message=test— QR SPD containsCZ0820100000002502035405make sync-2026against real sheet — rows from both accounts appear, no duplicates🤖 Generated with Claude Code