Skip to content

Commit

Permalink
remove split
Browse files Browse the repository at this point in the history
  • Loading branch information
teovin committed May 17, 2024
1 parent bfa5f3f commit 18c2dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/main/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 18c2dd3

Please sign in to comment.