wallace/module_resources.py
Thomas Brüderli
bruederli at kolabsys.com
Thu Mar 6 13:04:50 CET 2014
wallace/module_resources.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit b6fe11ce3ea308ed4fcaaa2e3b297eb3899cb277
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date: Tue Mar 4 17:59:49 2014 -0500
Append num_messages for every resource calendar that was examined
diff --git a/wallace/module_resources.py b/wallace/module_resources.py
index 3db2209..4202098 100644
--- a/wallace/module_resources.py
+++ b/wallace/module_resources.py
@@ -270,6 +270,7 @@ def execute(*args, **kw):
#
# Store the (first) conflicting event(s) alongside the resource information.
start = time.time()
+ num_messages = 0
for resource in resources.keys():
# skip this for resource collections
@@ -278,10 +279,9 @@ def execute(*args, **kw):
# sets the 'conflicting' flag and adds a list of conflicting events found
try:
- num_messages = read_resource_calendar(resources[resource], itip_events)
+ num_messages += read_resource_calendar(resources[resource], itip_events)
except Exception, e:
log.error(_("Failed to read resource calendar for %r: %r") % (resource, e))
- continue
end = time.time()
More information about the commits
mailing list