get correct item name for zonering

This commit is contained in:
Mark van der Wal 2021-02-15 10:17:04 +01:00
parent 1c04dfe1af
commit ee70322ddf
2 changed files with 2 additions and 7 deletions

View File

@ -21,8 +21,4 @@
<ProjectReference Include="..\FarmmapsApi\FarmmapsApi.csproj" /> <ProjectReference Include="..\FarmmapsApi\FarmmapsApi.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="Data" />
</ItemGroup>
</Project> </Project>

View File

@ -49,11 +49,10 @@ namespace FarmmapsZonering.Services
return null; return null;
} }
var itemName = $"VRAZonering";
var applianceMapItem = await _generalService.FindChildItemAsync(cropfieldItem.Code, var applianceMapItem = await _generalService.FindChildItemAsync(cropfieldItem.Code,
GEOTIFF_PROCESSED_ITEMTYPE, itemName, GEOTIFF_PROCESSED_ITEMTYPE, output.Name,
i => i.Updated >= itemTask.Finished.GetValueOrDefault(DateTime.UtcNow) && i => i.Updated >= itemTask.Finished.GetValueOrDefault(DateTime.UtcNow) &&
i.Name.ToLower().Contains(itemName.ToLower())); i.Name.ToLower().Contains(output.Name.ToLower()));
if (applianceMapItem == null) if (applianceMapItem == null)
{ {