fix bug
This commit is contained in:
parent
64041803a6
commit
8b39506689
|
@ -49,8 +49,11 @@ def get_films_by_reference(viewings):
|
|||
page_url = VCinemaUtils.generate_wikipedia_url(page_title)
|
||||
|
||||
if page_title in films_by_reference.keys():
|
||||
films_by_reference[page_title]["films"].append(viewing)
|
||||
films_by_reference[page_title]["keywords"].append(keyword)
|
||||
|
||||
if viewing not in films_by_reference[page_title]["films"]:
|
||||
films_by_reference[page_title]["films"].append(viewing)
|
||||
|
||||
else:
|
||||
films_by_reference[page_title] = {"url": page_url,
|
||||
"keywords": [keyword],
|
||||
|
|
Loading…
Reference in New Issue