[Mpuls-commits] r1588 - wasko/branches/2.0/waskaweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Feb 16 10:57:07 CET 2010
Author: torsten
Date: 2010-02-16 10:57:07 +0100 (Tue, 16 Feb 2010)
New Revision: 1588
Modified:
wasko/branches/2.0/waskaweb/lib/evaluation.py
Log:
* waskaweb/lib/evaluation.py (LogbookEvaluation.__init__): Renamed
Evaluation_18 to LogbookEvaluation
Modified: wasko/branches/2.0/waskaweb/lib/evaluation.py
===================================================================
--- wasko/branches/2.0/waskaweb/lib/evaluation.py 2010-02-16 09:55:46 UTC (rev 1587)
+++ wasko/branches/2.0/waskaweb/lib/evaluation.py 2010-02-16 09:57:07 UTC (rev 1588)
@@ -29,9 +29,9 @@
from mpulsweb.lib.helpers import timedelta_in_minutes
from mpulsweb.lib.db import db
-class Evaluation_18:
+class LogbookEvaluation:
"""Zeitaufwände aus dem Logbuch aller Fälle"""
- def __init__(self, compressed_ids):
+ def __init__(self, id):
self.sql = """SELECT sum(coalesce(l.dauer, '0 second'::interval)) AS dauer, count(l.id) AS anzahl, l.art, m.id
FROM ka_logbuch_tbl_view l
JOIN master_tbl_eval_total_view m
@@ -40,7 +40,7 @@
AND l.art <> '0'
GROUP BY l.art, m.id
ORDER BY l.art
- """ % compressed_ids[0]
+ """ % id
def perform(self):
unique_cases = []
More information about the Mpuls-commits
mailing list