Skip to content

Commit

Permalink
fix wrong path for tile service
Browse files Browse the repository at this point in the history
  • Loading branch information
hambsch committed Nov 7, 2024
1 parent 383c423 commit 522eda0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/guppy/endpoints/endpoint_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,6 @@ def validate_layer_and_get_file_path(db: Session, layer_name: str) -> str:
file_path = layer.file_path
if file_path and not os.path.exists(file_path):
raise HTTPException(status_code=404, detail=f"File not found: {file_path}")
if file_path.endswith('.mbtiles') and os.path.exists(layer.data_path):
file_path = layer.data_path
layer_data_chache[layer_name] = file_path
return layer_data_chache[layer_name]

Expand Down

0 comments on commit 522eda0

Please sign in to comment.