Fix altitude field name mismatch

Backend was sending 'alt' but frontend expected 'altitude'.
Standardized on 'altitude' throughout.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
James Smith
2025-12-24 12:51:34 +00:00
parent 7e2e7ffc13
commit 33f7ffe2d4
2 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -119,7 +119,7 @@ def parse_sbs_stream(service_addr):
elif msg_type == '3' and len(parts) > 15:
if parts[11]:
try:
aircraft['alt'] = int(float(parts[11]))
aircraft['altitude'] = int(float(parts[11]))
except (ValueError, TypeError):
pass
if parts[14] and parts[15]:
@@ -148,7 +148,7 @@ def parse_sbs_stream(service_addr):
aircraft['callsign'] = callsign
if parts[11]:
try:
aircraft['alt'] = int(float(parts[11]))
aircraft['altitude'] = int(float(parts[11]))
except (ValueError, TypeError):
pass