split line

This commit is contained in:
Sarah 2022-03-25 22:19:05 +00:00
parent 5645c4e575
commit d5a71ee177

View File

@ -20,7 +20,9 @@ def build_page(films_by_year, progressbar=None):
for year in films_by_year_sorted.keys(): for year in films_by_year_sorted.keys():
page_table += "\n" page_table += "\n"
page_table += str(year) + " | " page_table += str(year) + " | "
page_table += "<br>".join("[{}](https://www.imdb.com/title/tt{}/)".format(film['title'], film['imdb_id']) for film in films_by_year_sorted[year])
film_links = ["[{}](https://www.imdb.com/title/tt{}/)".format(film['title'], film['imdb_id']) for film in films_by_year_sorted[year]]
page_table += "<br>".join(film_links)
if progressbar is not None: if progressbar is not None:
progressbar.next() progressbar.next()