buchhalter-ai / buchhalter-ai-cli

The buchhalter open-source command line tool to automate invoice downloads from suppliers. Free, customizable, and designed for seamless financial workflow integration.
https://buchhalter.ai
Other
4 stars 1 forks source link

Download more than 2 invoices #33

Closed andygrunwald closed 6 months ago

andygrunwald commented 6 months ago

This Pull Request is doing two things:

1. Fix a panic

panic: sync: negative WaitGroup counter

goroutine 549 [running]:
sync.(*WaitGroup).Add(0xc00027f4d0, 0xffffffffffffffff)
    /opt/homebrew/Cellar/go/1.22.2/libexec/src/sync/waitgroup.go:62 +0x1a4
sync.(*WaitGroup).Done(0xc00027f4d0)
    /opt/homebrew/Cellar/go/1.22.2/libexec/src/sync/waitgroup.go:87 +0x30
buchhalter/lib/browser.(*BrowserDriver).stepDownloadAll.func1.1()
    /Users/andy.grunwald/Development/private/buchhalter/buchhalter-ai-cli/lib/browser/browser.go:335 +0x30
created by buchhalter/lib/browser.(*BrowserDriver).stepDownloadAll.func1 in goroutine 100
    /Users/andy.grunwald/Development/private/buchhalter/buchhalter-ai-cli/lib/browser/browser.go:334 +0x580
exit status 2

2. Add a new configuration how many invoices should be downloaded