From 85e7d9818bc6204ff3f40b80be4bbc329e22a9b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zieliski?= Date: Fri, 28 Jun 2024 11:36:43 +0200 Subject: [PATCH] IsLayerUp2Date FIX --- .idea/DiunaBI.iml | 12 ++++ .idea/inspectionProfiles/Project_Default.xml | 6 ++ .idea/modules.xml | 8 +++ .idea/vcs.xml | 6 ++ .idea/workspace.xml | 72 ++++++++++++++++++++ WebAPI/Controllers/LayersController.cs | 5 +- 6 files changed, 105 insertions(+), 4 deletions(-) create mode 100644 .idea/DiunaBI.iml create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml diff --git a/.idea/DiunaBI.iml b/.idea/DiunaBI.iml new file mode 100644 index 0000000..24643cc --- /dev/null +++ b/.idea/DiunaBI.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..03d9549 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..a57c1f8 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..a92a27f --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,72 @@ + + + + + + + + + + { + "associatedIndex": 3 +} + + + + { + "keyToString": { + "RunOnceActivity.ShowReadmeOnStart": "true", + "git-widget-placeholder": "master", + "last_opened_file_path": "/Users/mz/Projects/Diuna/DiunaBI", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "ts.external.directory.path": "/Users/mz/Projects/Diuna/DiunaBI/Frontend/node_modules/typescript/lib", + "vue.rearranger.settings.migration": "true" + } +} + + + + + + + + + + + 1718812857428 + + + + + + + + + \ No newline at end of file diff --git a/WebAPI/Controllers/LayersController.cs b/WebAPI/Controllers/LayersController.cs index 60c1c6d..3f1a0da 100644 --- a/WebAPI/Controllers/LayersController.cs +++ b/WebAPI/Controllers/LayersController.cs @@ -202,7 +202,6 @@ public class LayersController : Controller .Where(x => x.Records!.Any(y => y.Code == "Type" && y.Desc1 == "ImportWorker") && x.Records!.Any(y => y.Code == "IsEnabled" && y.Desc1 == "True") - //&& x.Records!.Any(x => x.Code == "ImportType" && x.Desc1 == "FK2") ) .OrderBy(x => x.CreatedAt) .ToList(); @@ -649,9 +648,7 @@ public class LayersController : Controller if (!double.TryParse(data[1][i].ToString(), CultureInfo.GetCultureInfo("pl-PL"), out var value) || - double.Abs((double)(record.Value1-value)!) > 0.01) continue; - WriteToConsole( - $"Code: {data[0][i]}. DiunaBI: {record.Value1:N2}. GoogleSheet: {data[1][i]}"); + double.Abs((double)(record.Value1-value)!) < 0.01) continue; isUpToDate = false; } foreach (var record in newestLayer.Records!)