about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-06-13 19:04:07 +0530
committerAndinus <andinus@nand.sh>2020-06-13 19:04:07 +0530
commit906f285ac23c5291b24003f85b0043ab26b74a7f (patch)
treecef3e8f45299d8cc912ca19e71cc1ef6ce1f6a88
parentefaf0a3d2c8205ee5af42eb2c44c3f538ab63894 (diff)
downloadara-906f285ac23c5291b24003f85b0043ab26b74a7f.tar.gz
Remove colors from Last Updated column
I decided it looks better without colors.
-rwxr-xr-xara.pl13
1 files 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,
         );
     }
 }