[Mpuls-commits] r1839 - wasko/branches/2.0/mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Feb 26 11:57:28 CET 2010


Author: torsten
Date: 2010-02-26 11:57:28 +0100 (Fri, 26 Feb 2010)
New Revision: 1839

Modified:
   wasko/branches/2.0/mpulsweb/lib/anonymize.py
Log:
Fixed determining of the endphase after anonymization


Modified: wasko/branches/2.0/mpulsweb/lib/anonymize.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/anonymize.py	2010-02-26 10:35:37 UTC (rev 1838)
+++ wasko/branches/2.0/mpulsweb/lib/anonymize.py	2010-02-26 10:57:28 UTC (rev 1839)
@@ -14,11 +14,11 @@
     # Phase usually start which id 0. Each phase as start and end. End phase
     # will be used on anonymization.
     if current_phase%2:
-        end_phase = current_phase+1
+        end_phase = current_phase
     elif current_phase == 0:
         end_phase = 1
     else:
-        end_phase = current_phase
+        end_phase = current_phase+1
 
     log.debug("endphase: %s" % end_phase)
     for phase, pairs in g.mpuls_config.get('phases', 'pairs')[0].iteritems():



More information about the Mpuls-commits mailing list