lib/tomatoharvest/time_entry.rb in tomatoharvest-0.0.1 vs lib/tomatoharvest/time_entry.rb in tomatoharvest-0.1.0
- old
+ new
@@ -31,9 +31,10 @@
##
# Persist time entry to Harvest tracker
def log(seconds)
hours = seconds_to_hours(seconds)
+ return if hours == 0
options = {
notes: notes,
hours: hours,
spent_at: date,
project_id: project.id,