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:
commit
6baab1e287
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue