aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-08-27 00:06:47 -0400
committerJesse Luehrs <doy@tozt.net>2019-08-27 00:06:47 -0400
commit623cbfd53104067bb84cd196f25f305f9024cae5 (patch)
treeccb82f30b1b353b1f776edd658a3e2bb8c0a0075
parentc5b0844ec759685fba35e890aa28c1db607c844c (diff)
downloadynab-export-623cbfd53104067bb84cd196f25f305f9024cae5.tar.gz
ynab-export-623cbfd53104067bb84cd196f25f305f9024cae5.zip
update comments
-rw-r--r--src/main.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 3108ebb..218cf46 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,6 +1,7 @@
use std::io::{Read, Write};
const PROJECT_NAME: &str = "ynab";
+// XXX is this fixed? or is it specific to my account?
const SPLIT_CATEGORY_ID: &str = "4f42d139-ded2-4782-b16e-e944868fbf62";
pub fn api_key() -> std::path::PathBuf {
@@ -164,7 +165,9 @@ fn main() {
transaction
.category_id
.and_then(|id| {
- // XXX actually handle subtransactions
+ // the split category doesn't appear to be in the
+ // categories data, so we have to exclude it or else
+ // the NOT NULL constraint will fail
if id == SPLIT_CATEGORY_ID {
None
} else {
@@ -279,6 +282,9 @@ fn main() {
.payee_id
.unwrap_or_else(|| "\\N".to_string())
.as_ref(),
+ // the split category doesn't appear to be in the categories
+ // data, so we have to exclude it or else the NOT NULL
+ // constraint will fail
if scheduled_transaction.category_id == SPLIT_CATEGORY_ID {
"\\N"
} else {