Compare commits

..

No commits in common. "ccf77f242cbe5ab3523db0c32953e33783fac6ff" and "80f4397410869f32009df6e1aff87703234de661" have entirely different histories.

View File

@ -116,6 +116,7 @@ namespace FarmmapsDataDownload
if (input.GetCropRecordings) if (input.GetCropRecordings)
{ {
var crprecItem = input.CrprecItem; var crprecItem = input.CrprecItem;
//Item cropfieldItem = ;
_logger.LogInformation($"Trying to get crop recordings of croprecording: {crprecItem}"); _logger.LogInformation($"Trying to get crop recordings of croprecording: {crprecItem}");
var cropRec = await _farmmapsApiService.GetItemChildrenAsync(crprecItem, CROPREC_ITEMTYPE); var cropRec = await _farmmapsApiService.GetItemChildrenAsync(crprecItem, CROPREC_ITEMTYPE);
@ -128,7 +129,7 @@ namespace FarmmapsDataDownload
var cropRecPath = Path.Combine(downloadFolder, $"croprecordings_{crprecItem}.json"); var cropRecPath = Path.Combine(downloadFolder, $"croprecordings_{crprecItem}.json");
_logger.LogInformation($"Found {cropRec.Count} crop recordings"); _logger.LogInformation($"Found {cropRec.Count} crop recordings");
var count = 0; var count = 0;
await Task.Delay(500); TimeSpan.FromSeconds(0.5);
foreach (var item in cropRec) foreach (var item in cropRec)
{ {
Console.WriteLine($"Crop recording #{count}: {item.Name}"); Console.WriteLine($"Crop recording #{count}: {item.Name}");