forgot to remove the lines that empty the tc_visit table - temporary development...
[eq/.git] / bin / import_ward_data
index 68ee95d2d60ced3d2bd1a40a0a8227b5f7482be8..e1590b8752f40be924a1acc69f60bfca240f7155 100755 (executable)
@@ -448,7 +448,7 @@ sub update_tc_visit_table
                #print "$month_header\n";
                #print $hometeaching_stats_data{$index}{$month_header};
                #print "\n";
-               foreach $i (reverse(0..$#history)) {
+               foreach $i (reverse(0..$#history-1)) {
                        # went back a calendar year, decrement $data_year
                        if ($months{$data_months[$i]} > $data_month)
                        {