Compare commits

...
2 Commits
+11 -4
View File
@@ -11,12 +11,19 @@ def categorize_transaction:
elif test("ALASKA\\s+AIR") then "Expenses:Travel:Flights" elif test("ALASKA\\s+AIR") then "Expenses:Travel:Flights"
elif test("HELP\\.UBER\\.COMCA") then "Expenses:Travel:Taxi" elif test("HELP\\.UBER\\.COMCA") then "Expenses:Travel:Taxi"
elif test("STEAM GAMES") then "Expenses:Entertainment:Games" elif test("STEAM GAMES") then "Expenses:Entertainment:Games"
elif test("YouTubePremium|DOORDASHDASHPASS|Prime\\s+Video\\s+Channels|TIDAL\\.COM|Amazon Grocery|SIMPLEFIN BRIDGE|(APPLE\\.COM.*RECURRING$)") then "Expenses:Subscriptions" elif test("FANDANGO") then "Expenses:Entertainment:Movies"
elif test("MOMS OF|SAFEWAY\\.COM|MAYORGA") then "Expenses:Food:Groceries" elif test("OLLAMA|AAA CLUB ALLIANCE|YouTubePremium|YouTube Member|DOORDASHDASHPASS|Prime\\s+Video\\s+Channels|TIDAL\\.COM|Amazon Grocery|SIMPLEFIN BRIDGE|(APPLE\\.COM.*RECURRING$)") then "Expenses:Subscriptions"
elif test("CHICK-FIL-A|GEMELLIS\\s+ITALIAN|CHIPOTLE|SHEETZ|KUNG\\s+FU\\s+TEA") then "Expenses:Food:Restaurants" elif test("MOMS OF|SAFEWAY\\.COM|MAYORGA|ATLASCOFFEECLUB|WHOLEFDS") then "Expenses:Food:Groceries"
elif test("GRUBHUB|DD\\s+\\*DOORDASH") then "Expenses:Food:Delivery" elif test("PROJECT GLOW \\(FOOD\\)|SPICELIFE|CHICK-FIL-A|GEMELLIS\\s+ITALIAN|CHIPOTLE|SHEETZ|KUNG\\s+FU\\s+TEA|&SHAWARMA|&PIZZA|KOREAN BBQ") then "Expenses:Food:Restaurants"
elif test("GRUBHUB|DD\\s+\\*?DOORDASH") then "Expenses:Food:Delivery"
elif test("MARKET@WORK") then "Expenses:Food:Snacks" elif test("MARKET@WORK") then "Expenses:Food:Snacks"
elif test("PROJECT GLOW \\(BEV\\)|(NAGADI|NEIGHBORS) COFFEE|BLACK LION CAFE|COFFEE REPUBLIC") then "Expenses:Luxuries:Drinks"
elif test("PROG SELECT INS") then "Expenses:Auto:Insurance"
elif test("AUTOZONE|KING FARM AUTO|CAR WASH") then "Expenses:Auto:Maintenance"
elif test("Interest earned") then "Income:Interest" elif test("Interest earned") then "Income:Interest"
elif test("IONNA") then "Expenses:Travel:Fuel"
elif test("66EXPRESSLANES|DRIVEEZMD") then "Expenses:Travel:Tolls"
elif test("LIME\\*PASS") then "Expenses:Travel:Rental"
else "UNKNOWN" end; else "UNKNOWN" end;
def format_transactions: def format_transactions: