diff --git a/app.py b/app.py index ada8aa7..ceb3da0 100644 --- a/app.py +++ b/app.py @@ -22,7 +22,7 @@ def favicon(): @cache.cached(timeout=5) def tarc(): d=requests.get("https://tarc.rideralerts.com/InfoPoint/rest/Vehicles/GetAllVehiclesForRoutes?routeIDs="+routes).json() - return "\n".join(f"{v['Latitude']},{v['Longitude']},{v['RouteId']},{v['Name']},{v['OnBoard']},{v['DirectionLong']},{v['Speed']}" for v in d) + return "\n".join(f"{v['Latitude']},{v['Longitude']},{v['RouteId']},{v['Name']},{v['OnBoard']},{v['DirectionLong']},{v['Speed']},{v['LastUpdated'][6:16]}" for v in d) if __name__ == '__main__': app.run() diff --git a/templates/map.html b/templates/map.html index 9a4b3b2..311e934 100644 --- a/templates/map.html +++ b/templates/map.html @@ -15,25 +15,27 @@