diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-10-26 20:56:25 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-10-26 20:56:25 +0200 |
commit | f9c379759ae437b191dcd313abb8a345b59fa4e9 (patch) | |
tree | 062fa36004204f54bd4b69b7f6eb8df44ffdc5c6 | |
parent | 47a62a1683eafd323d79a47688a649db186357ae (diff) | |
download | Servo-f9c379759ae437b191dcd313abb8a345b59fa4e9.tar.gz Servo-f9c379759ae437b191dcd313abb8a345b59fa4e9.tar.bz2 Servo-f9c379759ae437b191dcd313abb8a345b59fa4e9.zip |
Show length of rules in counter
-rw-r--r-- | servo/tasks.py | 3 |
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 |