changeset 6346:b966c67a476d

Backend: Only use name of official config line as name of main value.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 14 Jun 2013 18:15:49 +0200
parents 0f7e9a4f1c5a
children 75c483450c96
files backend/src/main/java/org/dive4elements/river/importer/parsers/OfficialLinesConfigParser.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/OfficialLinesConfigParser.java	Fri Jun 14 18:12:22 2013 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/OfficialLinesConfigParser.java	Fri Jun 14 18:15:49 2013 +0200
@@ -49,7 +49,8 @@
                 if ((line = line.trim()).length() == 0 || line.charAt(0) == '*') {
                     continue;
                 }
-                mainValueNames.add(line);
+                NameAndTimeInterval nat = NameAndTimeInterval.parseName(line);
+                mainValueNames.add(nat.getName());
             }
         }
         finally {

http://dive4elements.wald.intevation.org