Merge pull request #15 from iglocska/master

Dump the entire event including the 'Event' container element
pull/2/merge
Alexandre Dulaunoy 2015-08-12 11:50:15 +02:00
commit 9696466683
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__':