summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xenergyadder.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/energyadder.pl b/energyadder.pl
index 501a04b..20f1c3f 100755
--- a/energyadder.pl
+++ b/energyadder.pl
@@ -139,7 +139,8 @@ print $portions, " matlådor på ", int($total_food_weight/$portions), " g ger "
print "\n";
my $database_path = (split(":", $Config{'database'}))[2];
-add_to_cooking($recipe_id, $database_path, $specific_energy, $proteins, $carbs, $fats);
+add_to_cooking($recipe_id, $database_path, $specific_energy, $proteins, $carbs,
+ $fats, $cooking->{'cooking_comment'});
print "echo \"INSERT INTO cookings VALUES ($recipe_id, '".
DateTime->now()->ymd()."', ".int($specific_energy+0.5)."); \" | sqlite3 ".
$database_path."\n";