This commit is contained in:
Riepma
2021-03-01 16:38:55 +01:00
8 changed files with 66 additions and 30 deletions

View File

@@ -94,7 +94,7 @@ namespace FarmmapsApi.Services
return null;
}
//the taskmap is a child of the input tiff
//the taskmap is a child of the input tiff *** Update feb 2021: it is a child of the cropfield.
var itemName = "Taskmap";
var taskMapItem = await FindChildItemAsync(tiffItem.ParentCode,
SHAPE_PROCESSED_ITEMTYPE, itemName);
@@ -177,8 +177,6 @@ namespace FarmmapsApi.Services
await PollTask(TimeSpan.FromSeconds(3), async source => {
_logger.LogInformation($"Trying to get {containsName} data");
var uploadedFilesChildren = await _farmmapsApiService.GetItemChildrenAsync(parentCode, itemType);
Func<Item, bool> func = filter ?? (i => i.Name.ToLower().Contains(containsName.ToLower()));
dataItem = uploadedFilesChildren.FirstOrDefault(func);
if (dataItem != null || tries == maxTries) {