fixed quoteless attribute context (Fixes #251)

This commit is contained in:
Somdev Sangwan
2019-07-10 17:47:34 +05:30
committed by GitHub
parent d69402bf83
commit 470f138db5

View File

@@ -26,7 +26,7 @@ def generator(occurences, response):
found = False
tag = occurences[i]['details']['tag']
Type = occurences[i]['details']['type']
quote = occurences[i]['details']['quote']
quote = occurences[i]['details']['quote'] or ''
attributeName = occurences[i]['details']['name']
attributeValue = occurences[i]['details']['value']
quoteEfficiency = occurences[i]['score'][quote] if quote in occurences[i]['score'] else 100