From c3d371ac392ed7dde50aa20f0b44af604cd4a6b5 Mon Sep 17 00:00:00 2001 From: Mark Jessop Date: Sat, 1 Oct 2022 21:37:25 +0930 Subject: [PATCH] Fix bug with importing chase cars from sondehub --- chasemapper/__init__.py | 2 +- static/js/sondehub.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/chasemapper/__init__.py b/chasemapper/__init__.py index 95a99cd..cd8b09a 100644 --- a/chasemapper/__init__.py +++ b/chasemapper/__init__.py @@ -8,4 +8,4 @@ # Now using Semantic Versioning (https://semver.org/) MAJOR.MINOR.PATCH -__version__ = "1.5.0" +__version__ = "1.5.1" diff --git a/static/js/sondehub.js b/static/js/sondehub.js index afab4a9..ee1dbdc 100644 --- a/static/js/sondehub.js +++ b/static/js/sondehub.js @@ -56,6 +56,13 @@ function handleSondeHubWebSocketPacket(data){ } else { // Otherwise, we need to decide if we're going to add it or not. + + // Is it us? + if(vcallsign.startsWith(chase_config.habitat_call)){ + // Don't add! + return; + } + // Determine the vehicle distance from our current position. var v_pos = {lat: v_lat, lon:v_lon, alt:v_alt}; if (chase_car_position.marker === "NONE"){