summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2011-08-10 10:47:23 +0200
committercos <cos>2011-08-10 10:47:50 +0200
commitf2f4a79bbed64372811e60d3f90714b6d26855ab (patch)
treed68780d54dec28e5e5633e830916e937f11ad0d4
parenta1c8f5df883936f64b0ed213ac536f734481b14f (diff)
downloadmat-f2f4a79bbed64372811e60d3f90714b6d26855ab.zip
Output recipe id in plan for now.
This might be changed later, when having a better way of specifying meals. Or it might stay, to provide fuller control.
-rwxr-xr-xmat4
1 files changed, 2 insertions, 2 deletions
diff --git a/mat b/mat
index 7a8aa79..63c6a73 100755
--- a/mat
+++ b/mat
@@ -171,8 +171,8 @@ sub cmd_showplan {
"' and mealtype='$mealtype';";
my @ids = $db->selectrow_array($sql);
if ($ids[0]) {
- print $dt->ymd(), " ", get_recipe_name($ids[0]), ", ",
- get_recipe_uri($ids[0]), "\n";
+ printf "%9s %3s %s, %s\n", $dt->ymd(), $ids[0], get_recipe_name($ids[0]),
+ get_recipe_uri($ids[0]);
}
$dt->add(days => 1);
}