Skip to content

Commit

Permalink
No longer delete all CourtDates during recalculation
Browse files Browse the repository at this point in the history
Since we use update_or_create and key off a court's canonical_param we're safe to leave the database populated and run updates. This is probably the right behaviour, as we might want to stash additional court metadata in the database in future.
  • Loading branch information
jacksonj04 committed May 31, 2023
1 parent 08b2887 commit 8d9b39e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion judgments/management/commands/recalculate_court_dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def add_arguments(self, parser):
)

def handle(self, *args, **options):
CourtDates.objects.all().delete()
for court in courts.get_all():
self.stdout.write(self.style.NOTICE(f"{court.name}"))

Expand Down

0 comments on commit 8d9b39e

Please sign in to comment.