From 94dca478708efce68f507f4cd3d41f8f4e4faa4b Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Wed, 1 Mar 2017 18:19:41 +0100 Subject: [PATCH] relaxed conditions for finsinding by nd number --- .../src/main/java/smash/appointment/parse/SubjectDao.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appointment-import/src/main/java/smash/appointment/parse/SubjectDao.java b/appointment-import/src/main/java/smash/appointment/parse/SubjectDao.java index 26eca223..38dada10 100644 --- a/appointment-import/src/main/java/smash/appointment/parse/SubjectDao.java +++ b/appointment-import/src/main/java/smash/appointment/parse/SubjectDao.java @@ -69,8 +69,9 @@ public class SubjectDao { } public Subject getByNdNumber(String ndNumber) { + ndNumber = Utils.simplifyString(ndNumber); for (Subject s : subjects) { - if (ndNumber.equals(s.getNdNumber())) { + if (ndNumber.equalsIgnoreCase(s.getNdNumber())) { return s; } } -- GitLab