Commit 5706c12f authored by Marc Abonce Seguin's avatar Marc Abonce Seguin

remove empty parenthesis in wikipedia's summary

They're usually IPA pronunciations which are removed
by the API.
parent c18048e0
......@@ -100,6 +100,7 @@ def response(resp):
extract = page.get('extract')
summary = extract_first_paragraph(extract, title, image)
summary = summary.replace('() ', '')
# link to wikipedia article
wikipedia_link = base_url.format(language=url_lang(resp.search_params['language'])) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment