dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #25019
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12328: Event analytics tables, only including events with organisation units, which means events which h...
------------------------------------------------------------
revno: 12328
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-09-30 14:38:29 +0200
message:
Event analytics tables, only including events with organisation units, which means events which have taken place
modified:
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManager.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManager.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManager.java 2013-09-28 11:32:11 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManager.java 2013-09-30 12:38:29 +0000
@@ -164,7 +164,8 @@
"left join _dateperiodstructure dps on psi.executiondate=dps.dateperiod " +
"where psi.executiondate >= '" + start + "' " +
"and psi.executiondate <= '" + end + "' " +
- "and pr.programid=" + table.getProgram().getId() + ";";
+ "and pr.programid=" + table.getProgram().getId() + " " +
+ "and psi.organisationunitid is not null";
log.info( "Populate SQL: "+ sql );