Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added sender to unpickling in notification.engine.send_all to match p…

…ickling in notification.models.queue.

Signed-off-by: Brian Rosner <brosner@gmail.com>
  • Loading branch information...
commit 69e67105fb7a6d74840b73a9aa890ead7bf11af0 1 parent f4cc717
@mcroydon mcroydon authored brosner committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 notification/engine.py
View
4 notification/engine.py
@@ -45,12 +45,12 @@ def send_all():
try:
for queued_batch in NoticeQueueBatch.objects.all():
notices = pickle.loads(str(queued_batch.pickled_data).decode("base64"))
- for user, label, extra_context, on_site in notices:
+ for user, label, extra_context, on_site, sender in notices:
user = User.objects.get(pk=user)
logging.info("emitting notice to %s" % user)
# call this once per user to be atomic and allow for logging to
# accurately show how long each takes.
- notification.send_now([user], label, extra_context, on_site)
+ notification.send_now([user], label, extra_context, on_site, sender)
sent += 1
queued_batch.delete()
batches += 1
Please sign in to comment.
Something went wrong with that request. Please try again.