New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hledger-web only processes first file -f argument #657

Closed
dbp opened this Issue Nov 26, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@dbp

dbp commented Nov 26, 2017

If I run: hledger-web --server -f file1.ledger -f file2.ledger, the web UI only shows data from the first file, and the title at the top of the page is file1.ledger. This isn't great, especially because I can't run hledger-web from standard in (which granted would probably complicate things, as it would necessitate a read-only mode), and seems to contradict the documentation, which writes:

Like hledger, it reads data from one or more files in hledger journal, timeclock, timedot, or CSV format specified with -f, or $LEDGER_FILE, or $HOME/.hledger.journal (on windows, perhaps C:/User/USER/.hledger.journal).

Perhaps this limitation has something to do with needing to know where to store added entries, but it would be great if it were fixed.

There are at least two use cases:

  • I having archival .ledger files and then current ones, and ideally want to be able to show them all in the web ui sometimes.
  • I usually process bank transaction when statements are issued (to make it easier to not duplicate things), but I wanted to look at the most current data available, so I downloaded all transactions since last statement. I don't want to add this to my ledger file, but I would like to be able to, temporarily, look through them in the web ui.
@zarybnicky

This comment has been minimized.

Show comment
Hide comment
@zarybnicky

zarybnicky Jun 9, 2018

@simonmichael While solving the Sandstorm permission problem and resurrecting the edit/import forms, I might as well solve this one. What's the standard way of handling multiple files now? Append to the last one specified?

zarybnicky commented Jun 9, 2018

@simonmichael While solving the Sandstorm permission problem and resurrecting the edit/import forms, I might as well solve this one. What's the standard way of handling multiple files now? Append to the last one specified?

@simonmichael

This comment has been minimized.

Show comment
Hide comment
@simonmichael

simonmichael Jun 9, 2018

Owner

I suspect we add to the primary (first) file. I would check what the add command does. We should have pretty solid support in hledger-lib for multi-file journals now.

Owner

simonmichael commented Jun 9, 2018

I suspect we add to the primary (first) file. I would check what the add command does. We should have pretty solid support in hledger-lib for multi-file journals now.

@simonmichael

This comment has been minimized.

Show comment
Hide comment
@simonmichael

simonmichael Sep 7, 2018

Owner

This got fixed by 6a96683 and released in hledger-web 1.10.

It still only shows the first file's name as the title, pull requests welcome for that.

Owner

simonmichael commented Sep 7, 2018

This got fixed by 6a96683 and released in hledger-web 1.10.

It still only shows the first file's name as the title, pull requests welcome for that.

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