...
 
......@@ -602,7 +602,7 @@ class ERP5SiteStats(GenericSiteStats):
self.no_module[id_] = new_date_dict
attribute = defaultdict(partial(APDEXStats, threshold, getDuration))
for value_date, data in getattr(self, attribute_id).iteritems():
for value_date, data in getattr(self, 'site_search').iteritems():
attribute[convert(value_date)].accumulateFrom(data)
self.site_search = attribute
......