Skip to content

Commit bbca251

Browse files
author
Geoffrey Broadwell
committed
Show missing scores in text history
1 parent 962bb49 commit bbca251

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

analyze

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,16 +480,19 @@ sub summarize_results_text_history {
480480
my $score = $scores->{$key};
481481
my $column = $column{$comp->{name}};
482482

483-
if (defined $score) {
484-
# Don't let new scores on the same date overwrite old ones
485-
$new_row->($date) if $row[$column] ne '';
483+
# Don't let new scores on the same date overwrite old ones
484+
$new_row->($date) if $row[$column] ne '';
486485

486+
if (defined $score) {
487487
my $color = $score > 50 ? $GREEN :
488488
$score > 10 ? $YELLOW :
489489
$RED ;
490490

491491
$row[$column] = sprintf "$color%${longest_comp}.1f$CLEAR", $score;
492492
}
493+
else {
494+
$row[$column] = sprintf "$RED%${longest_comp}s$CLEAR", '--';
495+
}
493496
}
494497
$output .= sprintf $format, @row if @row;
495498

0 commit comments

Comments
 (0)