From 12ea2895ea9afeef8fb650d76cbef8c6c956b43d Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 4 Oct 2012 16:31:52 -0400 Subject: [PATCH] Add a json_success style result to updates responses. (imported from commit 6492f98f1e1f5b7622caa2f3427ae60bdfd3df0e) --- zephyr/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zephyr/views.py b/zephyr/views.py index 1b08fb1050..41a9763d44 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -204,6 +204,8 @@ def format_updates_response(messages, mit_sync_bot=False, apply_markdown=False, if mit_sync_bot: messages = [m for m in messages if not mit_sync_table.get(m.id)] return {'messages': [message.to_dict(apply_markdown) for message in messages], + "result": "success", + "msg": "", 'where': where} def return_messages_immediately(request, handler, user_profile, **kwargs):