[Mpuls-commits] r5379 - base/trunk/mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Sep 20 15:04:38 CEST 2011


Author: torsten
Date: 2011-09-20 15:04:36 +0200 (Tue, 20 Sep 2011)
New Revision: 5379

Modified:
   base/trunk/mpulsweb/controllers/meta.py
Log:
Fixed slicing of two first chars in firstname of mother and father.


Modified: base/trunk/mpulsweb/controllers/meta.py
===================================================================
--- base/trunk/mpulsweb/controllers/meta.py	2011-09-20 11:55:00 UTC (rev 5378)
+++ base/trunk/mpulsweb/controllers/meta.py	2011-09-20 13:04:36 UTC (rev 5379)
@@ -24,8 +24,8 @@
 
 def generate_hash(birthname, firstname, birthdate, gender, mother, father):
     '''Return hash build from birthname, firstname, birthdate and gender'''
-    mother = mother[0:1].lower()
-    father = father[0:1].lower()
+    mother = mother[0:2].lower()
+    father = father[0:2].lower()
     hashsrc = ":".join([str(len(birthname)), str(len(firstname)),
                         birthdate.strftime('%Y-%m-%d'), str(gender),
                         mother,father])



More information about the Mpuls-commits mailing list