I found my issue. Windows use 'application/vnd.ms-excel' as the MIME type
for .csv files for god knows why.
Either change line 176 of beancount\ingest\importers\csv.py or copy paste
it into your own importer file and change it there.
On Sunday, May 8, 2022 at 2:55:50 PM UTC-7 Alvin Ye wrote:
> Thank you for the reply. I change my config but still the same result. I'm
> using beancount 2.3.5
>
> new config:
>
> from beancount.ingest.importers.csv import Importer as CSVImporter, Col
>
> amex_cc_importer = CSVImporter({
> Col.DATE: 'Date',
> Col.NARRATION1: 'Description',
> Col.AMOUNT: 'Amount',
> },
> "Liabilities:Amex:PlatinumCard",
> 'USD',
> ('Date,Description,Card Member'),
> skip_lines=0
> )
>
> CONFIG= [amex_cc_importer]
>
> -Alvin
>
> On Sunday, May 8, 2022 at 12:48:47 AM UTC-7 [email protected] wrote:
>
>> * Alvin Ye <[email protected]> [2022-05-07 23:27]:
>> > ('Date,Description,Amount,Balance'),
>>
>> This does not match your CSV file.
>>
>> > activity.csv:
>> > Date,Description,Card Member,Account #,Amount,Extended Details,Appears
>> On
>>
>> --
>> Martin Michlmayr
>> https://www.cyrius.com/
>>
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/6e3c8330-2686-490b-974c-6cd7a0a92a06n%40googlegroups.com.