=== modified file 'tools/datamart/mydatamart.vfs/libdhis/dhisdb/dhisdb.tcl' --- tools/datamart/mydatamart.vfs/libdhis/dhisdb/dhisdb.tcl 2011-08-02 19:21:56 +0000 +++ tools/datamart/mydatamart.vfs/libdhis/dhisdb/dhisdb.tcl 2011-12-11 12:43:38 +0000 @@ -188,4 +188,9 @@ } } } + + proc deleteValues {handle periodType level orgunit valueType from to} { + puts "delete old values" + } + } === modified file 'tools/datamart/mydatamart.vfs/resource/xslt/functions.xsl' --- tools/datamart/mydatamart.vfs/resource/xslt/functions.xsl 2011-09-11 21:58:32 +0000 +++ tools/datamart/mydatamart.vfs/resource/xslt/functions.xsl 2011-12-11 12:43:38 +0000 @@ -21,7 +21,7 @@ ' + select="translate($raw,' .,-+:!','_______')" /> === modified file 'tools/datamart/mydatamart.vfs/stats.tcl' --- tools/datamart/mydatamart.vfs/stats.tcl 2011-11-29 15:33:50 +0000 +++ tools/datamart/mydatamart.vfs/stats.tcl 2011-12-11 12:43:38 +0000 @@ -190,7 +190,10 @@ indicator {set valueTypeParam IndicatorValues} } - ${::log}::debug "Downloading for $periodtype $valuetype" + # delete old values + 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] if {$tok ne 0} {