Subversion Repositories SmartDukaan

Rev

Rev 7708 | Rev 7710 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7708 Rev 7709
Line 284... Line 284...
284
            log.info("Before getting paused items.");
284
            log.info("Before getting paused items.");
285
            items.addAll(client.getAllItemsByStatus(status.PAUSED));
285
            items.addAll(client.getAllItemsByStatus(status.PAUSED));
286
            // Clean up the data from the solr directories.
286
            // Clean up the data from the solr directories.
287
            log.info("Before removing old resources.");
287
            log.info("Before removing old resources.");
288
            removeOldResources();
288
            removeOldResources();
-
 
289
            if(Calendar.getInstance().get(Calendar.AM_PM)==Calendar.AM )
289
            try {
290
            try {
290
            	//Generate prices and availability data for amazon
291
            	//Generate prices and availability data for amazon
291
            	AmazonSCDataGenerator.generatePricesAndAvailability(items);
292
            	AmazonSCDataGenerator.generatePricesAndAvailability(items);
292
            } catch (Exception e) {
293
            } catch (Exception e) {
293
            	log.info("Could not generate Amazon prices and availability", e);
294
            	log.info("Could not generate Amazon prices and availability", e);