diff --git a/TeslaLogger/WebServer.cs b/TeslaLogger/WebServer.cs index 6cd92c06..bf04cf49 100644 --- a/TeslaLogger/WebServer.cs +++ b/TeslaLogger/WebServer.cs @@ -3255,7 +3255,7 @@ private static void Admin_GetAllCars(HttpListenerRequest request, HttpListenerRe { using (DataTable dt = new DataTable()) { - using (MySqlDataAdapter da = new MySqlDataAdapter("SELECT id, display_name, tasker_hash, model_name, vin, tesla_name, tesla_carid, lastscanmytesla, freesuc, fleetAPI, needVirtualKey, needCommandPermission, needFleetAPI, access_type, virtualkey FROM cars order by display_name", DBHelper.DBConnectionstring)) + using (MySqlDataAdapter da = new MySqlDataAdapter("SELECT id, display_name, tasker_hash, model_name, vin, tesla_name, tesla_carid, lastscanmytesla, freesuc, fleetAPI, needVirtualKey, needCommandPermission, needFleetAPI, access_type, virtualkey, car_type, tesla_token_expire < DATE_SUB(NOW(), INTERVAL 12 HOUR) as inactive FROM cars order by display_name", DBHelper.DBConnectionstring)) { SQLTracer.TraceDA(dt, da);