Skip to content

Commit

Permalink
Minor changes on early action block script
Browse files Browse the repository at this point in the history
  • Loading branch information
susilnem committed Mar 25, 2024
1 parent ed38a26 commit a1493a3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dref/management/commands/create_early_action_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ def handle(self, *args, **options):
if interventions_to_create:
ActivityTimeFrame.objects.bulk_create(interventions_to_create)
pi.early_action_block.add(*interventions_to_create)
pi.description = None
pi.save()
logger.info(f"Created {len(interventions_to_create)} early action blocks for planned intervention")
if not interventions_to_create:
logger.info(f"No early action blocks created for planned intervention")

0 comments on commit a1493a3

Please sign in to comment.