UserInput #12

Merged
mark merged 4 commits from UserInput into master 2022-02-28 13:28:24 +00:00
Showing only changes of commit c5e60d01c3 - Show all commits

View File

@ -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)
mark marked this conversation as resolved
Review

Dit doet niks.
Als je 500ms wilt wachten doe je het volgende 'await Task.Delay(500);'

Dit doet niks. Als je 500ms wilt wachten doe je het volgende 'await Task.Delay(500);'
{
Console.WriteLine($"Crop recording #{count}: {item.Name}");