# HG changeset patch # User Tom Gottfried # Date 1377091973 -7200 # Node ID 8ca5d0e3c4383390ae49dc810ec9b66874245255 # Parent f1aeb6a60380f9dabe7b783bb4d81a7ca3e44277 BWASTR-Import: name of tributary contains name of river, not the other way round. diff -r f1aeb6a60380 -r 8ca5d0e3c438 backend/src/main/java/org/dive4elements/river/importer/Importer.java --- a/backend/src/main/java/org/dive4elements/river/importer/Importer.java Wed Aug 21 12:40:42 2013 +0200 +++ b/backend/src/main/java/org/dive4elements/river/importer/Importer.java Wed Aug 21 15:32:53 2013 +0200 @@ -183,7 +183,7 @@ // Now link rivers with official numbers. for(ImportRiver river: infoGewParser.getRivers()) { for(Map.Entry entry: map.entrySet()) { - if (StringUtil.containsIgnoreCase(entry.getKey(), river.getName())) { + if (StringUtil.containsIgnoreCase(river.getName(), entry.getKey())) { river.setOfficialNumber(entry.getValue()); log.debug(river.getName() + " is mapped to bwastr " + entry.getValue()); }