Skip to content

Commit

Permalink
👔 [#377] Skip updates in task if item is kept in list
Browse files Browse the repository at this point in the history
  • Loading branch information
SilviaAmAm committed Sep 23, 2024
1 parent 423e748 commit 31612ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/src/openarchiefbeheer/destruction/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ class Meta:
def __str__(self):
return f"Response to {self.review_item}"

def process(self):
def process(self) -> None:
if self.processing_status == InternalStatus.succeeded:
return

Expand All @@ -522,7 +522,6 @@ def process(self):
destruction_list_item.status = ListItemStatus.removed
destruction_list_item.save()

if self.action_zaak:
destruction_list_item.zaak.update_data(self.action_zaak)

self.processing_status = InternalStatus.succeeded
Expand Down

0 comments on commit 31612ec

Please sign in to comment.