Actually, I’d been wanting this for a long time, so I just wrote it up. It’s 
here <https://github.com/redstreet/beancount_reds_importers>. Install via 
pip: pip3 install beancount-reds-importers, and then run bean-download 
needs-update --help

You can also simply download this single file 
<https://github.com/redstreet/beancount_reds_importers/blob/main/beancount_reds_importers/util/needs_update.py>
 
and run it, though I’m not sure if I’ll support that in the future.

I'll write more about it in a separate post soon.
​
On Saturday, August 26, 2023 at 7:05:46 PM UTC-7 Red S wrote:

If you're handy with some scripting, it's fairly trivial to do that. You 
can adapt Fava's code that's here 
<https://github.com/beancount/fava/blob/6e307b51f762c2cdbe99a910a291290f46cb4095/src/fava/core/accounts.py#L133-L154>
 to 
run on the shell.

On Saturday, August 26, 2023 at 5:59:05 PM UTC-7 Tim Legg wrote:

Ah, I was hoping to find a way to do it through bean-query when I'm on my 
hp stream which struggles with fava sometimes. But this works, thanks!

On Thursday, August 24, 2023 at 5:59:33 PM UTC-4 Red S wrote:

There is also a "copy balance directives" button in Fava's statistics page 
that I believe does exactly what you want.

It used to work, but I just checked, and it doesn't work on my current 
version. Perhaps it's been fixed, or needs someone to file a bug.

On Thursday, August 24, 2023 at 2:57:56 PM UTC-7 Red S wrote:

I don't know if there's a way to get it through bean-query. If you use 
Fava, it does precisely this in the feature below.

Up-to-date indicators

Fava offers colored indicators that can help you keep your accounts 
up-to-date. They are shown next to accounts that have the metadata 
fava-uptodate-indication: 
TRUE set on their Open directive. The colors have the following meaning:

   - green: The last entry for this account is a balance check that passed.
   - red: The last entry is a balance check that failed.
   - yellow: The last entry is not a balance check.

In addition, a grey dot will be shown if the account has not been updated 
in a while, as configured by the uptodate-indicator-grey-lookback-days
 option.

On Thursday, August 24, 2023 at 10:25:54 AM UTC-7 Tim Legg wrote:

Is there a bean-query or another way to list the last balance assertion for 
all or a given account?

I tend to let my accounts get stale and like a way to ask.. when was the 
last time I verified this account or all account balances.

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beancount+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/883a0380-ac07-45b8-b28f-cfb6383a9138n%40googlegroups.com.

Reply via email to