use helper function

This commit is contained in:
Sarah 2022-12-04 14:20:36 +00:00
parent b8128be130
commit 6e182deb6e
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ def generate_markdown_link(text, url):
def generate_imdb_film_link(film): def generate_imdb_film_link(film):
return generate_markdown_link(film['title'], "https://www.imdb.com/title/tt{}/".format(film['imdb_id'])) return generate_markdown_link(film['title'], generate_imdb_url(film['imdb_id']))
def generate_wikipedia_page_link(page_title): def generate_wikipedia_page_link(page_title):