From 9554f52d3ce3714e4581b65ddfc4ced354129196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Tue, 15 May 2012 10:31:09 +0200 Subject: [PATCH] Do not compute twice the children timesheets review355001 --- work.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/work.py b/work.py index e3bfa344cf..7d8ebc827c 100644 --- a/work.py +++ b/work.py @@ -90,7 +90,7 @@ class Work(ModelSQL, ModelView): ('parent', 'child_of', ids), ]) # force inactive ids to be in all_ids - all_ids = all_ids + ids + all_ids = list(set(all_ids + ids)) clause = "SELECT work, sum(hours) FROM timesheet_line "\ "WHERE work IN (%s) "\ % ",".join(('%s',) * len(all_ids))