[Mpuls-commits] r623 - wasko/branches/1.0/waskaweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Oct 6 14:50:21 CEST 2009


Author: torsten
Date: 2009-10-06 14:50:20 +0200 (Tue, 06 Oct 2009)
New Revision: 623

Modified:
   wasko/branches/1.0/waskaweb/controllers/evaluate.py
Log:
Allow empty dates


Modified: wasko/branches/1.0/waskaweb/controllers/evaluate.py
===================================================================
--- wasko/branches/1.0/waskaweb/controllers/evaluate.py	2009-10-06 10:24:26 UTC (rev 622)
+++ wasko/branches/1.0/waskaweb/controllers/evaluate.py	2009-10-06 12:50:20 UTC (rev 623)
@@ -116,7 +116,7 @@
         tdates = []
         phase = params.get('phase')
         dates.append('( ')
-        if params.get('start_date') and params.get('end_date'):
+        if params.get('start_date') != 'None' and params.get('end_date') != 'None':
             if phase:
                 for p in phase:
                     if int(p) >= 0: # phase is unknown -> has no start and endphase



More information about the Mpuls-commits mailing list