[PATCH] (issue1799) Strip whitespace from river names
Wald Commits
scm-commit at wald.intevation.org
Tue Mar 24 11:57:28 CET 2015
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1427194643 -3600
# Node ID e331a5ad2554d6958b223e257960d373074f0a09
# Parent 1f6b30310360345f002ff0ec778af775d931c8be
(issue1799) Strip whitespace from river names
diff -r 1f6b30310360 -r e331a5ad2554 backend/contrib/shpimporter/shpimporter.py
--- a/backend/contrib/shpimporter/shpimporter.py Tue Mar 24 11:08:39 2015 +0100
+++ b/backend/contrib/shpimporter/shpimporter.py Tue Mar 24 11:57:23 2015 +0100
@@ -199,7 +199,7 @@
river_name = utils.getUTF8Path(
os.path.basename(os.path.normpath(directory)))
else:
- river_name = config.river_name
+ river_name = config.river_name.strip()
river_id = utils.getRiverId(dbconn_raw, river_name, oracle)
if not river_id:
More information about the Dive4Elements-commits
mailing list