diff options
| author | Zack Hobson | 2013-11-19 11:04:11 -0800 | 
|---|---|---|
| committer | Zack Hobson | 2013-11-19 11:04:11 -0800 | 
| commit | e6cef214e2b828279a54dc577eed7b16e12d903e (patch) | |
| tree | 6d5518b31b32475ad58910af44b75bd8dea7d430 /lib | |
| parent | e44d67ac2b164df4f9f5bd85d14fccd6908e5b78 (diff) | |
| download | hcl-e6cef214e2b828279a54dc577eed7b16e12d903e.tar.bz2 | |
Fix command helpers.0.4.2
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/hcl/commands.rb | 2 | ||||
| -rw-r--r-- | 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 | 
