kevinschaich / mintable

🍃 Automate your personal finances – for free, with no ads, and no data collection.
https://kevinschaich.io/mintable/
MIT License
1.52k stars 200 forks source link

Add CATEGORY_OVERRIDES config param for recategorizing transactions #5

Closed kevinschaich closed 5 years ago

kevinschaich commented 5 years ago

This PR fixes #4 – it adds a list of overrides to handle transactions that are routinely miscategorized by Plaid's servers. Overrides take the following format:

For example, if you want anything matching autopay or e-payment to get categorized as Credit Card Payment, you could add the following line to your .env file:

CATEGORY_OVERRIDES=[{ "pattern": ".*(autopay|e.payment).*", "flags": "i", "category.0": "Transfer", "category.1": "Credit Card Payments" }]