From 18c2dd35b420bc9d513185bd2e50cba92d31df65 Mon Sep 17 00:00:00 2001 From: Ebru Yucesar Date: Fri, 17 May 2024 10:30:47 -0400 Subject: [PATCH] remove split --- web/main/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/main/models.py b/web/main/models.py index 6cd014a56..589db6fea 100644 --- a/web/main/models.py +++ b/web/main/models.py @@ -1684,7 +1684,7 @@ def get_ali_license_text(self): title = self.title.lower() for item in licensed_materials: - if any(word.lower() in title.split() for word in item["match_words"]): + if any(word.lower() in title for word in item["match_words"]): license_txt = ( f"{item['title']}, copyright @ {item['copyright_year']} by the American Law Institute. " f"Reproduced with permission, not as part of a Creative Commons license."