refactor
This commit is contained in:
parent
6e182deb6e
commit
3c8afec775
|
@ -51,8 +51,8 @@ def get_films_by_reference(viewings):
|
|||
films_by_reference[page_title]["keywords"].append(keyword)
|
||||
else:
|
||||
films_by_reference[page_title] = {"url": page_url,
|
||||
"keywords": [keyword],
|
||||
"films": [viewing]}
|
||||
"keywords": [keyword],
|
||||
"films": [viewing]}
|
||||
|
||||
return films_by_reference
|
||||
|
||||
|
@ -73,10 +73,9 @@ def build_page(films_by_reference):
|
|||
row_data = []
|
||||
|
||||
reference_url = referenced["url"]
|
||||
reference_title = reference
|
||||
referenced_films = referenced["films"]
|
||||
|
||||
row_data.append(VCinemaUtils.generate_markdown_link(reference_title, reference_url))
|
||||
row_data.append(VCinemaUtils.generate_markdown_link(reference, reference_url))
|
||||
row_data.append(VCinemaUtils.get_film_list(referenced_films))
|
||||
|
||||
table += " | ".join(row_data)
|
||||
|
|
Loading…
Reference in New Issue