IsLayerUp2Date FIX

This commit is contained in:
Michał Zieliski
2024-06-28 11:36:43 +02:00
parent 6ebeb8217b
commit 85e7d9818b
6 changed files with 105 additions and 4 deletions

View File

@@ -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!)