From 5f1064754cfbad2a78f83449601ff714f38d373c Mon Sep 17 00:00:00 2001 From: Floke Date: Wed, 4 Feb 2026 13:07:09 +0000 Subject: [PATCH] fix([2fd88f42]): normalize PLZ column name before final output --- heatmap-tool/backend/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/heatmap-tool/backend/main.py b/heatmap-tool/backend/main.py index dac02b78..47d0c17a 100644 --- a/heatmap-tool/backend/main.py +++ b/heatmap-tool/backend/main.py @@ -132,6 +132,9 @@ async def get_heatmap_data(request: FilterRequest): # Rename columns to match frontend expectations ('lon' and 'lat') merged_df.rename(columns={'x': 'lon', 'y': 'lat'}, inplace=True) + # Also rename the original PLZ column to the consistent name 'plz' + merged_df.rename(columns={plz_column_name: 'plz'}, inplace=True) + # Convert to the required JSON format heatmap_data = merged_df[['plz', 'lat', 'lon', 'count']].to_dict(orient='records')