Dump the entire event including the 'Event' container element

pull/2/merge
iglocska 2015-08-12 10:09:23 +02:00
parent d8a6ae28ff
commit 4436383624
1 changed files with 2 additions and 2 deletions

View File

@ -20,10 +20,10 @@ def get_event(m, event, out=None):
result = m.get_event(event)
r = result.json()
if out is None:
print(json.dumps(r['Event']) + '\n')
print(json.dumps(r) + '\n')
else:
with open(out, 'w') as f:
f.write(json.dumps(r['Event']) + '\n')
f.write(json.dumps(r) + '\n')
if __name__ == '__main__':