Skip to content

Commit

Permalink
Debug add_tileset
Browse files Browse the repository at this point in the history
  • Loading branch information
docuracy committed Dec 28, 2024
1 parent 0f9fc34 commit 5f42a7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tileserver/repository/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@ def remove_tileset(tileset_type: str, tileset_id: str):
async def insert_tileset(request: TilesetRequest):
try:
result = add_tileset(request.type, request.id)
return result
return {"status": result}
except Exception as e:
return {"success": False, "status": f"Error adding tileset: {str(e)}"}
return {"status": f"Error adding tileset: {str(e)}"}
1 change: 1 addition & 0 deletions tileserver/repository/api/utils/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def split_geojson(response, geojson_path, table_path):
table_file.write(json.dumps(current_feature))
first_table_feature = False
else:
logger.info(f"Processing key: {current_key}, value: {value}")
# Process current feature data
if current_key == "geometry" and event == "start_map":
current_feature["geometry"] = {}
Expand Down

0 comments on commit 5f42a7c

Please sign in to comment.