Customize the class to make identify() match on file.name rather than the content and create two instances with different account names.
On Thu, Apr 4, 2019, 04:33 Zhuoyun Wei <[email protected]> wrote: > Hi, > > the CSV importer determines the account to use by "regexps" parameter. I > have two accounts from the same bank (one checking and one savings), and > the CSV files of both are of the same format. There isn't anything in the > file content that could tell the two accounts apart. The only difference is > the file name (e.g. "Chase1111.csv" for checking, "Chase2222.csv" for > savings). > > Under this circumstance, "regexps" parameter does not work. How could I > import different files into different accounts? > > -- > Zhuoyun Wei > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/17beda3b-4862-44e8-b839-51aaf6d573f8%40www.fastmail.com > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhPjt0zPY%3D07S5C8KXzkOHsAweJYzatFyXdS%3D2TtwXnyVQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
