Changeset 12777
- Timestamp:
- 07/20/15 13:47:59 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Maintenance/3.3/WebApi/FactClientInfoController.cs
r12769 r12777 56 56 ); 57 57 foreach (var id in clientIds) { 58 AggregateClient(pm, id, entries);58 AggregateClient(pm, id, start, end, entries); 59 59 } 60 60 dimTimeDao.DeleteUnusedTimes(); … … 62 62 } 63 63 64 private void AggregateClient(IPersistenceManager pm, Guid clientId, int entries) {64 private void AggregateClient(IPersistenceManager pm, Guid clientId, DateTime start, DateTime end, int entries) { 65 65 var factClientInfoDao = pm.FactClientInfoDao; 66 var clientInfos = pm.UseTransaction(() => factClientInfoDao.GetByClientId(clientId).OrderBy(x => x.Time).ToList()); 66 var clientInfos = pm.UseTransaction(() => factClientInfoDao.GetByClientId(clientId) 67 .Where(x => x.Time >= start && x.Time <= end) 68 .OrderBy(x => x.Time) 69 .ToList() 70 ); 67 71 var e = clientInfos.GetEnumerator(); 68 72 if (!e.MoveNext()) return;
Note: See TracChangeset
for help on using the changeset viewer.