aboutsummaryrefslogtreecommitdiffstats
path: root/servo
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-10-26 20:56:25 +0200
committerFilipp Lepalaan <filipp@mac.com>2015-10-26 20:56:25 +0200
commitf9c379759ae437b191dcd313abb8a345b59fa4e9 (patch)
tree062fa36004204f54bd4b69b7f6eb8df44ffdc5c6 /servo
parent47a62a1683eafd323d79a47688a649db186357ae (diff)
downloadServo-f9c379759ae437b191dcd313abb8a345b59fa4e9.tar.gz
Servo-f9c379759ae437b191dcd313abb8a345b59fa4e9.tar.bz2
Servo-f9c379759ae437b191dcd313abb8a345b59fa4e9.zip
Show length of rules in counter
Diffstat (limited to 'servo')
-rw-r--r--servo/tasks.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/servo/tasks.py b/servo/tasks.py
index d24da49..64158c7 100644
--- a/servo/tasks.py
+++ b/servo/tasks.py
@@ -51,7 +51,6 @@ def apply_rules(event):
order.set_queue(r['data'], event.triggered_by)
if r['action'] == "send_email":
-
try:
email = order.customer.valid_email()
except Exception:
@@ -82,7 +81,7 @@ def apply_rules(event):
counter += 1
- return '%d rules processed' % counter
+ return '%d/%d rules processed' % (counter, len(rules))
@shared_task