summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/hcl/day_entry.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/hcl/day_entry.rb b/lib/hcl/day_entry.rb
index db72748..bfc6dbf 100644
--- a/lib/hcl/day_entry.rb
+++ b/lib/hcl/day_entry.rb
@@ -27,14 +27,9 @@ module HCl
def append_note new_notes
# If I don't include hours it gets reset.
# This doens't appear to be the case for task and project.
- if notes.nil?
- notes = new_notes
- else
- notes << " #{new_notes}"
- end
DayEntry.post("daily/update/#{id}", <<-EOD)
<request>
- <notes>#{notes}</notes>
+ <notes>#{notes << " #{new_notes}"}</notes>
<hours>#{hours}</hours>
</request>
EOD