Skip to content
This repository was archived by the owner on May 4, 2025. It is now read-only.

feat add from limit#1

Open
bad33ndj3 wants to merge 1 commit intomainfrom
feat-add-from-date-limit
Open

feat add from limit#1
bad33ndj3 wants to merge 1 commit intomainfrom
feat-add-from-date-limit

Conversation

@bad33ndj3
Copy link
Copy Markdown
Owner

No description provided.

@bad33ndj3 bad33ndj3 self-assigned this Feb 1, 2024
Comment thread example.config.yaml
- bunq_account_name: "Your bunq account name"
ynab_budget_name: "Your YNAB budget name"
ynab_account_name: "Your YNAB account name"
from: "2024-01-13" # optional start date
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

explain in readme

Comment on lines +73 to +83
if account.From != nil {
limitFrom, err := time.Parse(time.DateOnly, *account.From)
if err != nil {
return errors.Wrap(err, "parsing from date")
}

if limitFrom.After(from) {
from = limitFrom
}
}

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unclutter

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant