From 39c8295ce1390356696e2b2854febe4f0d8cd30e Mon Sep 17 00:00:00 2001 From: Jerome Leonard Date: Thu, 11 May 2017 11:24:13 +0200 Subject: [PATCH] #1 get databreach info in content --- ds2markdown.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ds2markdown.py b/ds2markdown.py index cde5be9..6aaaa1a 100644 --- a/ds2markdown.py +++ b/ds2markdown.py @@ -115,9 +115,9 @@ def Summary(self, content): ) if 'dataBreach' in content: - dataBreach = content.get('entitySummary').get('dataBreach') - source += "**Databreach target** \n\n" + \ - "**Title: {0}\n\n**Target domain:** {1}\n\n**Published:** {2}\n\n**Occured:** {3}\n\n**Modified:** {4}\n\n**Id:** {5}\n\n".format( + dataBreach = content.get('dataBreach') + source += "\n\n#### Databreach target #### \n\n" + \ + "**Title:** {0}\n\n**Target domain:** {1}\n\n**Published:** {2}\n\n**Occured:** {3}\n\n**Modified:** {4}\n\n**Id:** {5}\n\n".format( dataBreach.get('title',"None"), dataBreach.get('domainName',"None"), dataBreach.get('published',"None"),