diff --git a/server/guppy/endpoints/endpoint_utils.py b/server/guppy/endpoints/endpoint_utils.py index 005eaaf..42c382a 100644 --- a/server/guppy/endpoints/endpoint_utils.py +++ b/server/guppy/endpoints/endpoint_utils.py @@ -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]