Add duplicate transaction check from log and transaction description LIKE match

This commit is contained in:
2024-08-28 22:41:05 +03:00
parent e1c9f56921
commit fb7796c475
5 changed files with 88 additions and 15 deletions

View File

@ -1,21 +1,21 @@
package config
func (c *Config) GetAccountByMonobankId(q string) ConfigAccount {
func (c *Config) GetAccountByMonobankId(q string) Account {
for _, row := range c.Accounts {
if row.MonobankId == q {
return row
}
}
return ConfigAccount{}
return Account{}
}
func (c *Config) GetAccountByFirefly3Name(q string) ConfigAccount {
func (c *Config) GetAccountByFirefly3Name(q string) Account {
for _, row := range c.Accounts {
if row.Firefly3Name == q {
return row
}
}
return ConfigAccount{}
return Account{}
}