still prod debug.
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
using System.Globalization;
|
||||||
using DiunaBIWebAPI.dataImporters;
|
using DiunaBIWebAPI.dataImporters;
|
||||||
using Google.Apis.Sheets.v4;
|
using Google.Apis.Sheets.v4;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
@@ -508,6 +509,7 @@ namespace WebAPI.Controllers
|
|||||||
|
|
||||||
for (int i = 0; i < data[1].Count; i++)
|
for (int i = 0; i < data[1].Count; i++)
|
||||||
{
|
{
|
||||||
|
double value;
|
||||||
if (data[0][i].ToString() != "")
|
if (data[0][i].ToString() != "")
|
||||||
{
|
{
|
||||||
Record? record = newestLayer.Records!.Where(x => x.Code == data[0][i].ToString()).FirstOrDefault();
|
Record? record = newestLayer.Records!.Where(x => x.Code == data[0][i].ToString()).FirstOrDefault();
|
||||||
@@ -517,7 +519,9 @@ namespace WebAPI.Controllers
|
|||||||
isUpToDate = false;
|
isUpToDate = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if (string.Format("{0:N2}", record.Value1) != data[1][i].ToString())
|
else if (
|
||||||
|
double.TryParse(data[1][i].ToString(), CultureInfo.GetCultureInfo("pl-PL"), out value) &&
|
||||||
|
record.Value1 != value)
|
||||||
{
|
{
|
||||||
WriteToConsole($"Code: {data[0][i]}. DiunaBI: {string.Format("{0:N2}", record.Value1)}. GoogleSheet: {data[1][i]}");
|
WriteToConsole($"Code: {data[0][i]}. DiunaBI: {string.Format("{0:N2}", record.Value1)}. GoogleSheet: {data[1][i]}");
|
||||||
isUpToDate = false;
|
isUpToDate = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user