Skip to content

Commit

Permalink
AsyncDDGS.news(): remove 'if image_url else None'
Browse files Browse the repository at this point in the history
  • Loading branch information
deedy5 committed Mar 7, 2024
1 parent cfc1361 commit e02c4ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion duckduckgo_search/duckduckgo_search_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ async def _news_page(s: int, page: int) -> None:
"title": row["title"],
"body": _normalize(row["excerpt"]),
"url": _normalize_url(row["url"]),
"image": _normalize_url(image_url) if image_url else None,
"image": _normalize_url(image_url),
"source": row["source"],
}
results[priority] = result
Expand Down

0 comments on commit e02c4ae

Please sign in to comment.