Skip to content

Commit

Permalink
#1 get databreach info in content
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed May 11, 2017
1 parent a77ea55 commit 39c8295
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ds2markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 39c8295

Please sign in to comment.