Skip to content

Commit

Permalink
SCKAN-324 - cleanup - simplify the assignment of compile_journey in s…
Browse files Browse the repository at this point in the history
…ave method
  • Loading branch information
D-GopalKrishna committed Dec 18, 2024
1 parent 51b3838 commit b934de3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/composer/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,8 +718,7 @@ def save(self, *args, **kwargs):
self.save(update_fields=["reference_uri"])

# recompute - journey
journey_data = compile_journey(self)
self.journey_path = journey_data
self.journey_path = compile_journey(self)
super().save(update_fields=["journey_path"])

def set_origins(self, origin_ids):
Expand Down

0 comments on commit b934de3

Please sign in to comment.