summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmat6
1 files changed, 5 insertions, 1 deletions
diff --git a/mat b/mat
index 2c7c0f5..2a1cb16 100755
--- a/mat
+++ b/mat
@@ -454,8 +454,12 @@ sub cmd_showplan {
# ($portions_left > 0) ? $portions_left : 'u',
$ids->{$mealtype}{'recipe_id'},
# get_recipe_uri($ids->{$mealtype}{'recipe_id'}),
-# get_comment($ids->{$mealtype}{'recipe_id'});
# "apa", "lemur", "katt", "hund";
+ } elsif ($ids->{$mealtype}{'comment_id'}) {
+ printf "%-10s %-13s |%s\n",
+ ($mealtype eq "frukost" ? $dt->ymd() : # FIXME remove hard coded mealtype
+ ($mealtype eq "elvakaffe" ? $dt->day_name() : "")), $mealtype, # FIXME remove hard coded mealtype
+ get_comment($ids->{$mealtype}{'comment_id'});
} else {
printf "%-10s %-13s | \n",
($mealtype eq "frukost" ? $dt->ymd() : # FIXME remove hard coded mealtype