From b5fbca3f8d43775cb0edc0725f3af062a474b480 Mon Sep 17 00:00:00 2001 From: Kim Date: Thu, 25 May 2023 14:50:20 +0200 Subject: [PATCH] removed take --- csharp/App/VrmGrabber/Controller.cs | 2 +- csharp/App/VrmGrabber/Database/Db.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/csharp/App/VrmGrabber/Controller.cs b/csharp/App/VrmGrabber/Controller.cs index fc7829ea9..1ae88e2dd 100644 --- a/csharp/App/VrmGrabber/Controller.cs +++ b/csharp/App/VrmGrabber/Controller.cs @@ -156,7 +156,7 @@ public class Controller : ControllerBase var localCommand = $"/opt/innovenergy/scripts/upload-bms-firmware {batteryTtyName} {batteryId} /opt/innovenergy/bms-firmware/{FirmwareVersion}.bin"; var remoteUpdateCommandResult = Db.ExecuteBufferedAsyncCommandOnIp(installationIp, localCommand); - // Console.WriteLine(remoteUpdateCommandResult); //Todo replace me with checking if it worked... + // Console.WriteLine(remoteUpdateCommandResult); } return "Battery update is successfully initiated! You can close this page now."; } diff --git a/csharp/App/VrmGrabber/Database/Db.cs b/csharp/App/VrmGrabber/Database/Db.cs index 9caecb8d2..a02088753 100644 --- a/csharp/App/VrmGrabber/Database/Db.cs +++ b/csharp/App/VrmGrabber/Database/Db.cs @@ -60,7 +60,7 @@ public static partial class Db do { await UpdateInstallationsAndDetailsFromVrm(0); } - while (false) ; //Todo change to true before + while (true) ; } [UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "")] @@ -73,7 +73,7 @@ public static partial class Db var installations = await user.GetInstallations(); // var returnDictionary = new Dictionary(); - foreach (var installation in installations.Skip(404).Take(3)) //TODO REMOVE TAKE + foreach (var installation in installations) { Console.WriteLine(installation.Name); var details = await GetInstallationDetails(installation);