Add a json_success style result to updates responses.

(imported from commit 6492f98f1e1f5b7622caa2f3427ae60bdfd3df0e)
This commit is contained in:
Tim Abbott 2012-10-04 16:31:52 -04:00
parent 27fdb10cbd
commit 12ea2895ea

View File

@ -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):