[GRASS-SVN] r67033 - grass/branches/releasebranch_7_0/scripts/v.rast.stats
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Dec 7 06:43:40 PST 2015
Author: annakrat
Date: 2015-12-07 06:43:40 -0800 (Mon, 07 Dec 2015)
New Revision: 67033
Modified:
grass/branches/releasebranch_7_0/scripts/v.rast.stats/v.rast.stats.py
Log:
v.rast.stats: fix handling column prefixes (merge from trunk, r66864)
Modified: grass/branches/releasebranch_7_0/scripts/v.rast.stats/v.rast.stats.py
===================================================================
--- grass/branches/releasebranch_7_0/scripts/v.rast.stats/v.rast.stats.py 2015-12-07 12:15:05 UTC (rev 67032)
+++ grass/branches/releasebranch_7_0/scripts/v.rast.stats/v.rast.stats.py 2015-12-07 14:43:40 UTC (rev 67033)
@@ -262,7 +262,7 @@
f.write("UPDATE %s SET" % fi['table'])
first_var = 1
for colname in colnames:
- variable = colname.replace("%s_" % colprefix, '')
+ variable = colname.replace("%s_" % colprefix, '', 1)
if dbfdriver:
variable = variables_dbf[variable]
i = variables[variable]
More information about the grass-commit
mailing list