From 6dd722b92cdfb7d5800ee657a6c4da8a785bf919 Mon Sep 17 00:00:00 2001 From: Eric Andrechek Date: Thu, 11 Apr 2024 19:42:34 -0400 Subject: [PATCH] forgot last updated --- tracking-dashboard/backend/api/map.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tracking-dashboard/backend/api/map.py b/tracking-dashboard/backend/api/map.py index 53935de..e7f3d05 100644 --- a/tracking-dashboard/backend/api/map.py +++ b/tracking-dashboard/backend/api/map.py @@ -48,7 +48,8 @@ def getTails(): data[name] = { "name": name, "symbol": item.symbol, - "positions": [] + "positions": [], + "last_updated": item.last_updated } for position in positions: if position["callsign"] == item.callsign and position["ssid"] == item.ssid: @@ -59,7 +60,7 @@ def getTails(): "cse": position["course"], "cpd": position["speed"], "cmnt": position["comment"], - "timestamp": position["timestamp"] + "dt": position["timestamp"] }) return jsonify(data)