Skip to content

Commit a018e21

Browse files
committed
Update revolut importer to accept a new format
1 parent d4ece38 commit a018e21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngtonic/importer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def parse_revolut_file(file_name: Path):
6969
"""Parse movements from a CSV file exported from Revolut"""
7070
reader = csv.DictReader(file_name.open(), delimiter=",")
7171
for row in reader:
72-
if row["Type"] != "CARD_PAYMENT":
72+
if row["Type"] in ("CARD_PAYMENT", "Card Payment"):
7373
# We are only interested in card payments
7474
continue
7575
movement_date = parser.parse(row["Started Date"]).date()

0 commit comments

Comments
 (0)