Skip to content

Commit

Permalink
Filter out private projects when computing tag counts - issue#924
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme-coder committed Nov 29, 2022
1 parent 75b86d3 commit d0be9fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion civictechprojects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,9 @@ def recache(self, recache_linked=False):
self.update_linked_items()

def update_linked_items(self):
# Recache events, but only if project is searchable
# Recache events and project tags, but only if project is searchable
if self.is_searchable:
ProjectSearchTagsCache.refresh()
owned_event_projects = self.get_project_event_projects()
for ep in owned_event_projects:
ep.recache()
Expand Down

0 comments on commit d0be9fb

Please sign in to comment.