Ignore cards without card ID in Fidme import

This commit is contained in:
Sylvia van Os
2022-09-07 19:33:07 +02:00
parent 0de6a91bab
commit e0650bc6f9
3 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
- Add Monochrome icon for Android 13
- Improve first launch screen
- Move archive info from overflow menu to bottom of card list
- Fidme import fixes
## v2.19.0 - 113

View File

@@ -110,7 +110,10 @@ public class FidmeImporter implements Importer {
// The ID is called reference
String cardId = CSVHelpers.extractString("Reference", record, "");
if (cardId.isEmpty()) {
throw new FormatException("No card ID listed, but is required");
// Fidme deletes the card id if a card is expired
// Because Catima considers the card id a required field, we ignore these expired cards
// https://github.com/CatimaLoyalty/Android/issues/1005
return;
}
// Sadly, Fidme exports don't contain the card type

View File

Binary file not shown.