From c29f996d23ec0dd1d5a99b37c14d6682ed9ad948 Mon Sep 17 00:00:00 2001 From: Fedde Sijbrandij Date: Mon, 28 Feb 2022 12:23:21 +0100 Subject: [PATCH] small update --- FarmmapsDataDownload/DataDownloadApplication.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/FarmmapsDataDownload/DataDownloadApplication.cs b/FarmmapsDataDownload/DataDownloadApplication.cs index 6fe7831..4292f07 100644 --- a/FarmmapsDataDownload/DataDownloadApplication.cs +++ b/FarmmapsDataDownload/DataDownloadApplication.cs @@ -116,7 +116,6 @@ namespace FarmmapsDataDownload if (input.GetCropRecordings) { var crprecItem = input.CrprecItem; - //Item cropfieldItem = ; _logger.LogInformation($"Trying to get crop recordings of croprecording: {crprecItem}"); var cropRec = await _farmmapsApiService.GetItemChildrenAsync(crprecItem, CROPREC_ITEMTYPE); @@ -129,7 +128,7 @@ namespace FarmmapsDataDownload var cropRecPath = Path.Combine(downloadFolder, $"croprecordings_{crprecItem}.json"); _logger.LogInformation($"Found {cropRec.Count} crop recordings"); var count = 0; - TimeSpan.FromSeconds(0.5); + await Task.Delay(500); foreach (var item in cropRec) { Console.WriteLine($"Crop recording #{count}: {item.Name}");