IsLayerUp2Date FIX
This commit is contained in:
@@ -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!)
|
||||
|
||||
Reference in New Issue
Block a user