Subversion Repositories SmartDukaan

Rev

Rev 3506 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3506 Rev 3518
Line 26... Line 26...
26
            String id = sdf.format(toDate);
26
            String id = sdf.format(toDate);
27
            
27
            
28
            ComparisonStatsRepository repo = new ComparisonStatsRepository();
28
            ComparisonStatsRepository repo = new ComparisonStatsRepository();
29
        	ComparisonStats comparisonStats = repo.getById(id);
29
        	ComparisonStats comparisonStats = repo.getById(id);
30
        	
30
        	
31
            resp.getWriter().println(comparisonStats.getComparisonStatsJSON());
31
        	resp.getWriter().println(comparisonStats.getComparisonStatsJSON().getValue());
32
            	
32
            	
33
        } catch (IOException e) {
33
        } catch (IOException e) {
34
            System.out.println("Unable to write at output stream");
34
            System.out.println("Unable to write at output stream");
35
        }
35
        }
36
    }
36
    }