diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-08-17 02:36:43 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-08-17 02:36:43 -0400 |
commit | e801bc38e6ef8746ea61dd2bc7fce59e3204049f (patch) | |
tree | 4183b294737ad7b54a160c7c42dd27b29a2813b6 /src/main.rs | |
parent | a494b85f2ab08c98f57c59883c07bb92e2afd193 (diff) | |
download | ynab-api-e801bc38e6ef8746ea61dd2bc7fce59e3204049f.tar.gz ynab-api-e801bc38e6ef8746ea61dd2bc7fce59e3204049f.zip |
add ability to actually update transactions
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index fbb078b..8ee7bc3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,7 +13,7 @@ fn main() { .read_to_string(&mut key) .unwrap(); let client = ynab::Client::new(&key.trim()); - let budget = client.default_budget(); + let budget = client.into_default_budget(); checks::run_checks(&budget); @@ -32,6 +32,7 @@ fn main() { layout.add_child(views::txn_tables(&budget)); + app.set_user_data(budget); app.add_fullscreen_layer(layout); app.run(); } |