Re: Matching account by filename

2019-04-04 Thread Aamer Abbas
By the way, just wanted to note this is for extraction purposes since you need to use a different account based on the file name. If it's only for identification purposes, the identifier mixin already supports matching on the file name ( https://bitbucket.org/blais/beancount/src/fa1edde3bcd02a277fa

Re: Matching account by filename

2019-04-04 Thread Aamer Abbas
You can't do it with the CSV importer the way it's currently written. You will need to write your own importer. Something like this, but obviously refactored in a nicer way. def extract(self, file): file_name = path.basename(file.name) if file_name == "something.csv":

Matching account by filename

2019-04-04 Thread Zhuoyun Wei
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 differenc