diff --git a/aspnetcore/src/Repositories/FundingCallIndexRepository.cs b/aspnetcore/src/Repositories/FundingCallIndexRepository.cs index c5b1d97..34564db 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.IsOpenCall==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.IsOpenCall==true) .ProjectTo(_mapper.ConfigurationProvider); }