Skip to content

Commit 1e76d9c

Browse files
committed
Fixed buggy guard code
- Legacy-Id: 16278
1 parent bc5be6b commit 1e76d9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/community/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def update_name_contains_indexes_with_new_doc(doc):
8181
# Django doesn't support a reversed regex operator, and regexp
8282
# support needs backend-specific code so custom SQL is a bit
8383
# cumbersome too
84-
if re.search(r.text, doc.name) and not d in r.name_contains_index.all():
84+
if re.search(r.text, doc.name) and not doc in r.name_contains_index.all():
8585
r.name_contains_index.add(doc)
8686

8787
def docs_matching_community_list_rule(rule):

0 commit comments

Comments
 (0)