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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Jan 10 09:36:00 CET 2011


Author: torsten
Date: 2011-01-10 09:36:00 +0100 (Mon, 10 Jan 2011)
New Revision: 4481

Modified:
   base/trunk/mpulsweb/controllers/evaluation_overview.py
Log:
Count cases and agencys in evalution seaerch


Modified: base/trunk/mpulsweb/controllers/evaluation_overview.py
===================================================================
--- base/trunk/mpulsweb/controllers/evaluation_overview.py	2011-01-10 08:35:22 UTC (rev 4480)
+++ base/trunk/mpulsweb/controllers/evaluation_overview.py	2011-01-10 08:36:00 UTC (rev 4481)
@@ -124,11 +124,8 @@
         c.phases = PhaseFactory().build() 
 
         #count num of cases
-        c.count_all = len([x for x in c.cases.getDatasets()])
-        c.count_own = len([x for x in c.cases.getDatasets()])
-        c.count_anon = len([x for x in c.cases.getDatasets()])
-        c.count_markanon = len([x for x in c.cases.getDatasets()])
-        c.count_del = len([x for x in c.cases.getDatasets()])
+        c.count_agency = len([x for x in c.cases.getDatasets()])
+        c.count_all = sum([int(x.count) for x in c.cases.getDatasets()])
 
         # Load case-selection and merge with default search options
         # Ok please close your eyes now!!! This is.... well ugly



More information about the Mpuls-commits mailing list