← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5711: [mydatamart] fixed bug with misnamed variable

 

------------------------------------------------------------
revno: 5711
committer: bobjolliffe <bobjolliffe@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-01-11 21:14:20 +0000
message:
  [mydatamart] fixed bug with misnamed variable
modified:
  tools/datamart/mydatamart.exe
  tools/datamart/mydatamart.vfs/stats.tcl


--
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 'tools/datamart/mydatamart.exe'
Binary files tools/datamart/mydatamart.exe	2011-12-11 12:45:26 +0000 and tools/datamart/mydatamart.exe	2012-01-11 21:14:20 +0000 differ
=== modified file 'tools/datamart/mydatamart.vfs/stats.tcl'
--- tools/datamart/mydatamart.vfs/stats.tcl	2011-12-11 12:43:38 +0000
+++ tools/datamart/mydatamart.vfs/stats.tcl	2012-01-11 21:14:20 +0000
@@ -184,8 +184,8 @@
 	    $::dhis($downloadtype,image) configure -image {}
 	    if {$::dhis($downloadtype,update) == 1} {
 		
-		lassign [split $downloadtype ,] periodtype valuetype
-		switch $valuetype {
+		lassign [split $downloadtype ,] periodType valueType
+		switch $valueType {
 		    datavalue {set valueTypeParam DataValues}
 		    indicator {set valueTypeParam IndicatorValues}
 		}
@@ -194,7 +194,7 @@
 		dhisdb::deleteValues db $periodType $level $orgunit $valueType $from $to
 		
 		${::log}::debug "Downloading for $periodType $valueType"
-		set tok [::dhisweb::fetchValues $::dhis(url) $level $orgunit $valueTypeParam $periodtype $from $to db]
+		set tok [::dhisweb::fetchValues $::dhis(url) $level $orgunit $valueTypeParam $periodType $from $to db]
 		
 		if {$tok ne 0} {
 		    # set up some bindings