Fix lint issue

This commit is contained in:
Arun Prakash Jana 2018-08-06 23:18:02 +05:30
parent 59606427b0
commit 5113fe5b6a
No known key found for this signature in database
GPG Key ID: A75979F35C080412

View File

@ -3012,7 +3012,7 @@ def parse_decoded_page(page):
keys = keywords.get('content').strip().replace('\n', ' ')
keys = re.sub('\s{2,}', ' ', keys)
if is_unusual_tag(keys):
if keys != title and keys != desc:
if keys not in (title, desc):
logdbg('keywords to description: %s', keys)
if desc:
desc = desc + '\n## ' + keys