small update

This commit is contained in:
Fedde Sijbrandij 2022-02-28 12:23:21 +01:00 committed by Gitea
parent 44cde0fe15
commit c29f996d23

View File

@ -116,7 +116,6 @@ 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);
@ -129,7 +128,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;
TimeSpan.FromSeconds(0.5); await Task.Delay(500);
foreach (var item in cropRec) foreach (var item in cropRec)
{ {
Console.WriteLine($"Crop recording #{count}: {item.Name}"); Console.WriteLine($"Crop recording #{count}: {item.Name}");