remove character rfom end of keyword
This commit is contained in:
parent
41860df682
commit
26fab46176
|
@ -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