[GRASS-SVN] r66864 - grass/trunk/scripts/v.rast.stats
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Nov 19 21:08:43 PST 2015
Author: annakrat
Date: 2015-11-19 21:08:43 -0800 (Thu, 19 Nov 2015)
New Revision: 66864
Modified:
grass/trunk/scripts/v.rast.stats/v.rast.stats.py
Log:
v.rast.stats: fix handling column prefixes
Modified: grass/trunk/scripts/v.rast.stats/v.rast.stats.py
===================================================================
--- grass/trunk/scripts/v.rast.stats/v.rast.stats.py 2015-11-19 22:25:12 UTC (rev 66863)
+++ grass/trunk/scripts/v.rast.stats/v.rast.stats.py 2015-11-20 05:08:43 UTC (rev 66864)
@@ -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