Fix new_zephyr => content conversion for zephyr mirror script.

(imported from commit 2bcc46749efce5c0ee693abfb13cf460b31f99d7)
This commit is contained in:
Tim Abbott 2012-10-02 17:52:41 -04:00
parent d2ca08dd6f
commit 3d29bc9d24

View file

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