this.accounts = accounts;
this.transactions = transactions;
}
- private void storeAccountsAndTransactions(List<LedgerAccount> accounts,
- List<LedgerTransaction> transactions) {
+ @Override
+ public void run() {
AccountDAO accDao = DB.get()
.getAccountDAO();
TransactionDAO trDao = DB.get()
if (existing != null) {
a.account.setExpanded(existing.isExpanded());
a.account.setAmountsExpanded(existing.isAmountsExpanded());
- a.account.setId(
- existing.getId()); // not strictly needed, but since we have it
+ a.account.setId(existing.getId()); // not strictly needed, but since we have it
// anyway...
}
.insertSync(new Option(profile.getId(), Option.OPT_LAST_SCRAPE,
String.valueOf((new Date()).getTime())));
}
- @Override
- public void run() {
- storeAccountsAndTransactions(accounts, transactions);
- }
}
}