Fix new_zephyr => content conversion for zephyr mirror script.
(imported from commit 2bcc46749efce5c0ee693abfb13cf460b31f99d7)
This commit is contained in:
parent
d2ca08dd6f
commit
3d29bc9d24
|
@ -198,14 +198,14 @@ def process_loop(log):
|
||||||
'sender' : sender,
|
'sender' : sender,
|
||||||
'recipient' : huddle_recipients,
|
'recipient' : huddle_recipients,
|
||||||
'zsig' : zsig, # logged here but not used by app
|
'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:
|
elif is_personal:
|
||||||
zeph = { 'type' : 'personal',
|
zeph = { 'type' : 'personal',
|
||||||
'time' : str(notice.time),
|
'time' : str(notice.time),
|
||||||
'sender' : sender,
|
'sender' : sender,
|
||||||
'recipient' : recipient,
|
'recipient' : recipient,
|
||||||
'zsig' : zsig, # logged here but not used by app
|
'zsig' : zsig, # logged here but not used by app
|
||||||
'new_zephyr': body }
|
'content' : body }
|
||||||
else:
|
else:
|
||||||
zeph = { 'type' : 'class',
|
zeph = { 'type' : 'class',
|
||||||
'time' : str(notice.time),
|
'time' : str(notice.time),
|
||||||
|
@ -213,7 +213,7 @@ def process_loop(log):
|
||||||
'class' : notice.cls.lower(),
|
'class' : notice.cls.lower(),
|
||||||
'instance' : notice.instance,
|
'instance' : notice.instance,
|
||||||
'zsig' : zsig, # logged here but not used by app
|
'zsig' : zsig, # logged here but not used by app
|
||||||
'new_zephyr': body }
|
'content' :body }
|
||||||
|
|
||||||
log.write(simplejson.dumps(zeph) + '\n')
|
log.write(simplejson.dumps(zeph) + '\n')
|
||||||
log.flush()
|
log.flush()
|
||||||
|
|
Loading…
Reference in a new issue