Skip to content
Snippets Groups Projects

old import code

Merged Piotr Gawron requested to merge duplicates-removal into master
3 files
+ 60
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -81,7 +81,7 @@ public class RedcapCalendarParser {
if (subject == null) {
subject = findSubject(query);
}
if (subject != null && !subject.getToBeSeenAt().equalsIgnoreCase("LIH")) {
if (subject != null && !subject.getToBeSeenAt().toLowerCase().startsWith("l")) {
return null;
}
result.setLocation("LIH");
@@ -93,7 +93,12 @@ public class RedcapCalendarParser {
if (result.getTypes().contains(AppointmentType.OTHER)) {
logger.warn("Cannot find types for: " + query);
}
return result;
if (result.getTypes().contains(AppointmentType.LEVEL_ASAMP)) {
return result;
} else {
logger.debug("Skipping LIH appointment: " + query);
return null;
}
}
CellParser cellParser = new CellParser();
Loading