Merge pull request 'remove character rfom end of keyword' (#13) from bugfix/character-in-reference into master

Reviewed-on: #13
This commit is contained in:
Sarah 2022-12-16 21:16:43 +00:00
commit 6baab1e287
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,9 @@ def get_films_by_reference(viewings):
if keyword.startswith("a-"):
keyword = keyword[2:]
if keyword.endswith("-character"):
keyword = keyword[:-10]
referenced = keyword.replace("-", " ")
try: