Skip to content

Commit

Permalink
Fix MCC parser
Browse files Browse the repository at this point in the history
  • Loading branch information
olma2077 committed Nov 23, 2023
1 parent 4e26155 commit c5fc9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uabean/importers/monobank.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def extract(self, filename, existing_entries=None):
return entries

def entry_from_row(self, meta, account, account_currency, cashback_currency, row):
meta["category"] = self.mcc_codes[row[self.MCC_COL]]
meta["category"] = self.mcc_codes[row[self.MCC_COL].zfill(4)]
postings = []
dt = self.date_from_str(row[self.DATE_COL])
meta["time"] = dt.time().strftime("%H:%M:%S")
Expand Down

0 comments on commit c5fc9de

Please sign in to comment.