[GRASS-SVN] r72502 - grass/branches/releasebranch_7_4/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Mar 22 09:55:40 PDT 2018
Author: lucadelu
Date: 2018-03-22 09:55:40 -0700 (Thu, 22 Mar 2018)
New Revision: 72502
Modified:
grass/branches/releasebranch_7_4/lib/python/temporal/list_stds.py
Log:
python temporal: backported r72403
Modified: grass/branches/releasebranch_7_4/lib/python/temporal/list_stds.py
===================================================================
--- grass/branches/releasebranch_7_4/lib/python/temporal/list_stds.py 2018-03-22 15:51:11 UTC (rev 72501)
+++ grass/branches/releasebranch_7_4/lib/python/temporal/list_stds.py 2018-03-22 16:55:40 UTC (rev 72502)
@@ -250,7 +250,8 @@
else:
# In comma separated mode only map ids are needed
if method == "comma":
- columns = "id"
+ if columns not in ['id', 'name']:
+ columns = "id"
rows = sp.get_registered_maps(columns, where, order, dbif)
@@ -260,9 +261,9 @@
count = 0
for row in rows:
if count == 0:
- string += row["id"]
+ string += row[columns]
else:
- string += ",%s" % row["id"]
+ string += ",%s" % row[columns]
count += 1
if outpath:
outfile.write('{st}\n'.format(st=string))
More information about the grass-commit
mailing list