From 906f285ac23c5291b24003f85b0043ab26b74a7f Mon Sep 17 00:00:00 2001 From: Andinus Date: Sat, 13 Jun 2020 19:04:07 +0530 Subject: Remove colors from Last Updated column I decided it looks better without colors. --- ara.pl | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/ara.pl b/ara.pl index d3133c9..e3492cd 100755 --- a/ara.pl +++ b/ara.pl @@ -181,18 +181,15 @@ foreach my $i ( 0 ... $rows_to_print - 1 ) { # Add $update_info. if ( $last_update_dmy eq $today->strftime( "%d/%m/%Y" ) ) { - $update_info = "Today"; # Don't add color here because the - # next if statement will eval to - # false everytime. + $update_info = "Today"; } elsif ( $last_update_dmy eq $today->minus_days(1)->strftime( "%d/%m/%Y" ) ) { - $update_info = LOCALCOLOR CYAN "Yesterday"; + $update_info = "Yesterday"; } elsif ( $last_update_dmy eq $today->plus_days(1)->strftime( "%d/%m/%Y" ) ) { - $update_info = LOCALCOLOR RED - "Tomorrow"; # Hopefully we don't see this. + $update_info = "Tomorrow"; # Hopefully we don't see this. } else { - $update_info = LOCALCOLOR YELLOW + $update_info = $months[substr( $lastupdatedtime, 3, 2 )] . " " . substr( $lastupdatedtime, 0, 2 ); @@ -247,7 +244,7 @@ foreach my $i ( 0 ... $rows_to_print - 1 ) { $statewise->[$i]{active}, $recovered, $deaths, - LOCALCOLOR GREEN $update_info, + $update_info, ); } } -- cgit 1.4.1-2-gfad0