Compare commits
No commits in common. "467ee78f595a722c7f26dcadd25ddd5830dd8018" and "6baab1e287030f2c7113faae9a19b2b2733e1c7c" have entirely different histories.
467ee78f59
...
6baab1e287
|
@ -43,7 +43,6 @@ def get_films_by_reference(viewings):
|
||||||
page_title = page_title[0].upper() + page_title[1:]
|
page_title = page_title[0].upper() + page_title[1:]
|
||||||
page_url = VCinemaUtils.generate_wikipedia_url(page_title)
|
page_url = VCinemaUtils.generate_wikipedia_url(page_title)
|
||||||
except wikipedia.PageError as _:
|
except wikipedia.PageError as _:
|
||||||
if len(searches) > 0:
|
|
||||||
try:
|
try:
|
||||||
referenced_page = wikipedia.page(title=searches[0], auto_suggest=False)
|
referenced_page = wikipedia.page(title=searches[0], auto_suggest=False)
|
||||||
|
|
||||||
|
@ -53,9 +52,6 @@ def get_films_by_reference(viewings):
|
||||||
page_title = e.title
|
page_title = e.title
|
||||||
page_title = page_title[0].upper() + page_title[1:]
|
page_title = page_title[0].upper() + page_title[1:]
|
||||||
page_url = VCinemaUtils.generate_wikipedia_url(page_title)
|
page_url = VCinemaUtils.generate_wikipedia_url(page_title)
|
||||||
else:
|
|
||||||
page_title = referenced.title()
|
|
||||||
page_url = None
|
|
||||||
|
|
||||||
if page_title in films_by_reference.keys():
|
if page_title in films_by_reference.keys():
|
||||||
films_by_reference[page_title]["keywords"].append(keyword)
|
films_by_reference[page_title]["keywords"].append(keyword)
|
||||||
|
@ -89,9 +85,6 @@ def build_page(films_by_reference):
|
||||||
reference_url = referenced["url"]
|
reference_url = referenced["url"]
|
||||||
referenced_films = referenced["films"]
|
referenced_films = referenced["films"]
|
||||||
|
|
||||||
if reference_url is None:
|
|
||||||
row_data.append(reference)
|
|
||||||
else:
|
|
||||||
row_data.append(VCinemaUtils.generate_markdown_link(reference, reference_url))
|
row_data.append(VCinemaUtils.generate_markdown_link(reference, reference_url))
|
||||||
row_data.append(VCinemaUtils.get_film_list(referenced_films))
|
row_data.append(VCinemaUtils.get_film_list(referenced_films))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue