From e6cef214e2b828279a54dc577eed7b16e12d903e Mon Sep 17 00:00:00 2001 From: Zack Hobson Date: Tue, 19 Nov 2013 11:04:11 -0800 Subject: Fix command helpers. --- lib/hcl/commands.rb | 2 +- lib/hcl/utility.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/hcl/commands.rb b/lib/hcl/commands.rb index 3bdfb66..38f7ab1 100644 --- a/lib/hcl/commands.rb +++ b/lib/hcl/commands.rb @@ -102,7 +102,7 @@ module HCl def resume *args ident = get_ident args entry = if ident - task_ids = get_task_ids ident + task_ids = get_task_ids ident, args DayEntry.last_by_task *task_ids else DayEntry.last diff --git a/lib/hcl/utility.rb b/lib/hcl/utility.rb index c724846..8026069 100644 --- a/lib/hcl/utility.rb +++ b/lib/hcl/utility.rb @@ -1,6 +1,6 @@ module HCl module Utility - def get_task_ids ident + def get_task_ids ident, args if @settings.key? "task.#{ident}" @settings["task.#{ident}"].split(/\s+/) else @@ -19,7 +19,7 @@ module HCl end def get_task args - Task.find *get_task_ids(get_ident(args)) + Task.find *get_task_ids(get_ident(args), args) end def get_starting_time args -- cgit v1.2.3