Skip to content

Commit

Permalink
Merge pull request django-daiquiri#220 from django-daiquiri/minor-fix…
Browse files Browse the repository at this point in the history
…-files-search

fix loop for a changing dict in cms search
  • Loading branch information
kimakan authored Oct 19, 2023
2 parents ebd6f67 + c63e55f commit 50f447a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion daiquiri/files/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def build_lunr_index(cls):
any_changes = False

# clean up files that do not exist anymore
for file_path in Searcher.cms_files:
previous_cms_files = Searcher.cms_files
for file_path in previous_cms_files:
if file_path not in unique_files:
any_changes = True
cls.cms_files.pop(file_path)
Expand Down

0 comments on commit 50f447a

Please sign in to comment.