From 3d29bc9d241c7ebeeac58a7a16932480deedddc8 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 2 Oct 2012 17:52:41 -0400 Subject: [PATCH] Fix new_zephyr => content conversion for zephyr mirror script. (imported from commit 2bcc46749efce5c0ee693abfb13cf460b31f99d7) --- zephyr_mirror.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zephyr_mirror.py b/zephyr_mirror.py index 6df9b7a..fb287f6 100644 --- a/zephyr_mirror.py +++ b/zephyr_mirror.py @@ -198,14 +198,14 @@ def process_loop(log): 'sender' : sender, 'recipient' : huddle_recipients, 'zsig' : zsig, # logged here but not used by app - 'new_zephyr': body.split("\n", 1)[1] } + 'content' : body.split("\n", 1)[1] } elif is_personal: zeph = { 'type' : 'personal', 'time' : str(notice.time), 'sender' : sender, 'recipient' : recipient, 'zsig' : zsig, # logged here but not used by app - 'new_zephyr': body } + 'content' : body } else: zeph = { 'type' : 'class', 'time' : str(notice.time), @@ -213,7 +213,7 @@ def process_loop(log): 'class' : notice.cls.lower(), 'instance' : notice.instance, 'zsig' : zsig, # logged here but not used by app - 'new_zephyr': body } + 'content' :body } log.write(simplejson.dumps(zeph) + '\n') log.flush()