fix references page

This commit is contained in:
Sarah 2022-12-10 17:09:56 +00:00
parent 632542c139
commit 8ba89ea288

View File

@ -76,16 +76,11 @@ def build_page(films_by_reference):
table = MarkdownUtils.MarkdownTable(["Referenced", "Films"])
for reference, referenced in films_by_reference.items():
table += "\n"
reference = MarkdownUtils.generate_markdown_link(reference, referenced["url"])
films = VCinemaUtils.get_film_list(referenced["films"])
row_data = []
row_data = [reference, films]
reference_url = referenced["url"]
referenced_films = referenced["films"]
table.add_row(row_data)
row_data.append(VCinemaUtils.generate_markdown_link(reference, reference_url))
row_data.append(VCinemaUtils.get_film_list(referenced_films))
table += " | ".join(row_data)
return table
return str(table)