diff --git a/aspnetcore/src/Repositories/FundingCallIndexRepository.cs b/aspnetcore/src/Repositories/FundingCallIndexRepository.cs index c5b1d97..4ae6301 100644 --- a/aspnetcore/src/Repositories/FundingCallIndexRepository.cs +++ b/aspnetcore/src/Repositories/FundingCallIndexRepository.cs @@ -25,7 +25,7 @@ protected override IQueryable GetAll() return _context.DimCallProgrammes .AsNoTracking() .AsSplitQuery() - .Where(callProgramme => callProgramme.Id != -1 && callProgramme.DimOrganizations.Count > 0) + .Where(callProgramme => callProgramme.Id != -1 && callProgramme.DimOrganizations.Count > 0 && (callProgramme.DimDateIdOpen != -1 && callProgramme.DimDateIdDue != -1 || callProgramme.ContinuousApplicationPeriod == true)) .ProjectTo(_mapper.ConfigurationProvider); } @@ -37,7 +37,7 @@ protected override IQueryable GetChunk(int skipAmount, int takeAmou .Take(takeAmount) .AsNoTracking() .AsSplitQuery() - .Where(callProgramme => callProgramme.Id != -1 && callProgramme.DimOrganizations.Count > 0) + .Where(callProgramme => callProgramme.Id != -1 && callProgramme.DimOrganizations.Count > 0 && (callProgramme.DimDateIdOpen != -1 && callProgramme.DimDateIdDue != -1 || callProgramme.ContinuousApplicationPeriod == true)) .ProjectTo(_mapper.ConfigurationProvider); }