summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZack Hobson2013-11-19 11:04:11 -0800
committerZack Hobson2013-11-19 11:04:11 -0800
commite6cef214e2b828279a54dc577eed7b16e12d903e (patch)
tree6d5518b31b32475ad58910af44b75bd8dea7d430 /lib
parente44d67ac2b164df4f9f5bd85d14fccd6908e5b78 (diff)
downloadhcl-e6cef214e2b828279a54dc577eed7b16e12d903e.tar.bz2
Fix command helpers.0.4.2
Diffstat (limited to 'lib')
-rw-r--r--lib/hcl/commands.rb2
-rw-r--r--lib/hcl/utility.rb4
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