From f8b910b602fd5f17ad60103629c0308149da389d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Murta?= Date: Sat, 1 Jan 2022 19:40:56 +0000 Subject: [PATCH] Fix filename parsing For filenames that need more information, such as the same mealcard from both of us, it was replacing the cc information. --- pfbudget/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pfbudget/utils.py b/pfbudget/utils.py index ea5986c..21af873 100644 --- a/pfbudget/utils.py +++ b/pfbudget/utils.py @@ -44,7 +44,7 @@ def find_credit_institution(fn, banks, creditcards): except ValueError: if not bank: bank = i - else: + elif not cc: cc = i if not bank: