[GRASS-SVN] r50640 - grass/trunk/lib/python/temporal

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 3 04:36:15 EST 2012


Author: huhabla
Date: 2012-02-03 01:36:14 -0800 (Fri, 03 Feb 2012)
New Revision: 50640

Modified:
   grass/trunk/lib/python/temporal/abstract_map_dataset.py
Log:
Check for None not for 0


Modified: grass/trunk/lib/python/temporal/abstract_map_dataset.py
===================================================================
--- grass/trunk/lib/python/temporal/abstract_map_dataset.py	2012-02-03 03:01:18 UTC (rev 50639)
+++ grass/trunk/lib/python/temporal/abstract_map_dataset.py	2012-02-03 09:36:14 UTC (rev 50640)
@@ -302,7 +302,7 @@
 
         start_time, end_time, unit = self.get_relative_time()
         start = "%i %s"%(int(start_time), unit)
-        if end_time:
+        if end_time != None:
             end = "%i %s"%(int(end_time), unit)
             start += " / %s"%(end)
         core.run_command(self.get_timestamp_module_name(), map=self.get_map_id(), date=start)



More information about the grass-commit mailing list