From fb6143596d9526a1691bf28d23c565a5353a1dbb Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Mon, 22 Jul 2013 22:11:13 -0700 Subject: [PATCH] Fix label -- is ICAO when ident not present. --- python/html_template.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/html_template.py b/python/html_template.py index 49c7ca5..d129c1a 100644 --- a/python/html_template.py +++ b/python/html_template.py @@ -85,9 +85,10 @@ def html_template(my_position, json_file): //scaledSize: new google.maps.Size(4608,126) }; - identstr = airplanes[airplane].ident; - if (identstr === "" || !identstr) { - identstr = airplanes[airplane].icao; + if (airplanes[airplane].ident.length != 8) { + identstr = airplane; + } else { + identstr = airplanes[airplane].ident; }; var planeOptions = {