44
45
# nesting the try statement to be Python 2.4
46
47
for queued_batch in NoticeQueueBatch.objects.all():
48
50
for user, label, extra_context, on_site in notices:
49
51
user = User.objects.get(pk=user)
51
53
# call this once per user to be atomic and allow for logging to
52
54
# accurately show how long each takes.
53
notification.send_now([user], label, extra_context, on_site)
56
[user], label, extra_context, on_site)