| Line 271... |
Line 271... |
| 271 |
CreationUtils.storeSlideScores(slideScoresByEntity);
|
271 |
CreationUtils.storeSlideScores(slideScoresByEntity);
|
| 272 |
|
272 |
|
| 273 |
// Fetch comparison statistics only on sunday, else use the data stored in BDB
|
273 |
// Fetch comparison statistics only on sunday, else use the data stored in BDB
|
| 274 |
Calendar cal = Calendar.getInstance();
|
274 |
Calendar cal = Calendar.getInstance();
|
| 275 |
int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK);
|
275 |
int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK);
|
| 276 |
if(dayOfWeek == Calendar.SUNDAY){
|
276 |
//if(dayOfWeek == Calendar.SUNDAY){
|
| 277 |
long toDate = cal.getTime().getTime();
|
277 |
long toDate = cal.getTime().getTime();
|
| 278 |
cal.add(Calendar.MONTH, -1);
|
278 |
cal.add(Calendar.MONTH, -1);
|
| 279 |
long fromDate = cal.getTime().getTime();
|
279 |
long fromDate = cal.getTime().getTime();
|
| 280 |
ComparisonStatsFetcher csf = new ComparisonStatsFetcher();
|
280 |
ComparisonStatsFetcher csf = new ComparisonStatsFetcher();
|
| 281 |
csf.fetchAndStoreComparisonStats(fromDate, toDate);
|
281 |
csf.fetchAndStoreComparisonStats(fromDate, toDate);
|
| 282 |
}
|
282 |
//}
|
| 283 |
|
283 |
|
| 284 |
items = client.getAllItemsByStatus(status.ACTIVE);
|
284 |
items = client.getAllItemsByStatus(status.ACTIVE);
|
| 285 |
items.addAll(client.getAllItemsByStatus(status.PAUSED));
|
285 |
items.addAll(client.getAllItemsByStatus(status.PAUSED));
|
| 286 |
items.addAll(client.getAllItemsByStatus(status.CONTENT_COMPLETE));
|
286 |
items.addAll(client.getAllItemsByStatus(status.CONTENT_COMPLETE));
|
| 287 |
populateEntityIdItemMap();
|
287 |
populateEntityIdItemMap();
|