Skip to content

Commit

Permalink
fix bug in user stats counting
Browse files Browse the repository at this point in the history
  • Loading branch information
grandsbor committed Feb 16, 2015
1 parent c20b6e9 commit 55a3bfc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/stats/update_annot_stats.pl
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ sub count_finished {
$last_sample_id = $r->{'sample_id'};
$last_answer = $r->{'answer'};
}

# count the last sample
if ($last_sample_id) {
for my $uid(@users) {
++$total_count->{$uid};
if (!$same_answer) {
++$diverg_count->{$uid};
}
}
}
}
sub count_correct {
my $dbh = shift;
Expand Down

0 comments on commit 55a3bfc

Please sign in to comment.