[Dive4elements-commits] [PATCH 2 of 3] Backend: Only use name of official config line as name of main value
Wald Commits
scm-commit at wald.intevation.org
Fri Jun 14 18:25:23 CEST 2013
# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1371226549 -7200
# Node ID b966c67a476d3390306422963c62da1346f2f12a
# Parent 0f7e9a4f1c5af8d8a4b4d1bfcc5fff3b719c66d8
Backend: Only use name of official config line as name of main value.
diff -r 0f7e9a4f1c5a -r b966c67a476d backend/src/main/java/org/dive4elements/river/importer/parsers/OfficialLinesConfigParser.java
--- 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 {
More information about the Dive4elements-commits
mailing list