This commit is contained in:
thatscringebro
2026-03-10 14:15:40 -04:00
parent 7b8312af12
commit f8cd73795b
6 changed files with 47 additions and 58 deletions

View File

@@ -101,8 +101,7 @@ pub fn get_accounts(con: &Connection) -> Vec<Account> {
let mut statement = con.prepare(query).unwrap();
let mut vec = Vec::<Account>::new();
let all = Account::new(0, "All".to_string(), AccountType::Cash);
vec.push(all);
vec.push(Account::new(0, "All".to_string(), AccountType::Cash));
while let Ok(State::Row) = statement.next() {
vec.push(Account::new(
@@ -209,7 +208,7 @@ pub fn upsert_transaction(con: &Connection, tr: Transaction) -> Transaction {
id,
tr.get_account().get_id(),
tr.get_amount(),
tr.get_date(),
tr.get_date_utc(),
tr.get_desc(),
tr.get_type().get_id(),
con,