Skip to content

Commit

Permalink
Security update + Policy Teams management (#871) (#872)
Browse files Browse the repository at this point in the history
* tss-2089: nltk dep
* invalidate barrier cache on policy team management command


---------

Co-authored-by: abarolo <[email protected]>
  • Loading branch information
abarolo and abarolo authored Aug 21, 2024
1 parent 0359da1 commit e7f2972
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 113 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from django.core.management import BaseCommand

from api.barriers import barrier_cache
from api.barriers.models import Barrier


Expand Down Expand Up @@ -48,5 +49,6 @@ def handle(self, *args, **options):
if dryrun:
print(f"{barrier_id}: {policy_team_ids}")
else:
barrier_cache.delete(barrier_id)
for pid in policy_team_ids:
barrier.policy_teams.add(pid)
Loading

0 comments on commit e7f2972

Please sign in to comment.