mirror of https://github.com/MISP/PyMISP
Merge pull request #68 from PaulSec/patch-1
Updated last.py to dump json results straight awaypull/77/head
commit
8796d49ed3
|
@ -26,9 +26,7 @@ def download_last(m, last, out=None):
|
|||
exit(0)
|
||||
else:
|
||||
with open(out, 'w') as f:
|
||||
for e in result['response']:
|
||||
f.write(json.dumps(e) + '\n')
|
||||
|
||||
f.write(json.dumps(result['response']))
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser(description='Download latest events from a MISP instance.')
|
||||
|
|
Loading…
Reference in New Issue