Skip to content

Commit

Permalink
refactor: remove unique ID from image URL generation
Browse files Browse the repository at this point in the history
  • Loading branch information
provos committed Jun 18, 2024
1 parent 6ffa806 commit ceb5148
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ def serve_slice_image(self, slice_index):
slice_index, mode=CompositeMode.CHECKERBOARD)
image.save(image_path)
image_path = Path(self.SRV_DIR) / image_path
unique_id = int(time.time())
return f'/{str(image_path)}?v={unique_id}'
return f'/{str(image_path)}'

def slice_image_composed(self, slice_index, mode: CompositeMode = CompositeMode.NONE):
"""Composes the slice image over the main image."""
Expand Down

0 comments on commit ceb5148

Please sign in to comment.