- Timestamp:
- 09/21/15 16:28:38 (9 years ago)
- Location:
- stable
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Services.WebApp.Maintenance/3.3
-
Property
svn:global-ignores
set to
bin
obj
-
Property
svn:global-ignores
set to
-
stable/HeuristicLab.Services.WebApp.Maintenance/3.3/WebApi/FactTaskController.cs
r12858 r12962 39 39 var factTaskDao = pm.FactTaskDao; 40 40 return pm.UseTransaction(() => { 41 var query = dimJobDao.GetAll().Where(x => x.DateCreated >= start && x.DateCreated <= end );41 var query = dimJobDao.GetAll().Where(x => x.DateCreated >= start && x.DateCreated <= end && x.DateCompleted != null); 42 42 return new DT.JobPage { 43 43 TotalJobs = query.Count(), … … 69 69 var dimJobDao = pm.DimJobDao; 70 70 var jobIds = pm.UseTransaction(() => dimJobDao.GetAll() 71 .Where(x => x.DateCreated >= start && x.DateCreated <= end )71 .Where(x => x.DateCreated >= start && x.DateCreated <= end && x.DateCompleted != null) 72 72 .Select(x => x.JobId) 73 73 .ToList() -
stable/HeuristicLab.Services.WebApp.Maintenance/3.3/WebApi/PluginController.cs
r12858 r12962 39 39 var taskDao = pm.TaskDao; 40 40 return pm.UseTransaction(() => { 41 var taskIds = taskDao.GetAll().Select(x => x.TaskId); 42 var usedPluginIds = requiredPluginDao.GetAll() 43 .Where(x => taskIds.Contains(x.TaskId)) 41 var usedPluginIds = requiredPluginDao.GetAll() 44 42 .Select(x => x.PluginId) 45 .Distinct(); 46 var query = pluginDao.GetAll().Where(x => !usedPluginIds.Any(y => y == x.PluginId)); 43 .Distinct().ToArray(); 44 var tmpQuery = pluginDao.GetAll().Select(x=>x.PluginId).ToArray().Where(x => !usedPluginIds.Any(y => y == x)).ToArray(); 45 var query = pluginDao.GetAll().Where(x => tmpQuery.Contains(x.PluginId)).ToArray(); 47 46 return new DT.PluginPage { 48 47 TotalPlugins = query.Count(),
Note: See TracChangeset
for help on using the changeset viewer.