diff --git a/bean-query-goofy-daemon.plx b/bean-query-goofy-daemon.plx index 01b91eb..bc8eb8e 100755 --- a/bean-query-goofy-daemon.plx +++ b/bean-query-goofy-daemon.plx @@ -79,7 +79,7 @@ sub StartRunningBeanQuery { $currentFormat = $format; my @cmd = ($BEANCOUNT_QUERY_CMD); - push(@cmd, '-f', $query{format}) if defined $query{format}; + push(@cmd, '-f', $format) if defined $format; push(@cmd, $LOAD_FILE); $runningBeanQuery = start \@cmd, 'pty>', \$rbcOut, '2>', \$rbcErr; pump $runningBeanQuery until $rbcOut =~ /^\s*beancount\s*\>\s*/m; @@ -151,7 +151,6 @@ while (1) { $seenSeperator = 1; } elsif ($currentFormat eq 'text' and $line =~ /^\s*\-+\s*$/) { $seenSeperator = 1; - print "$prevLine\n"; } $prevLine = $line; next;