Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
blindFS committed Dec 16, 2015
1 parent c37ed61 commit 3063dd7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions autoload/taskwarrior/data.vim
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ function! taskwarrior#data#get_value_by_column(line, column, ...)
let index = match(b:task_report_columns, '^'.a:column.'.*')
return taskwarrior#data#get_value_by_index(a:line, index(b:task_report_columns, a:column))
else
let dict = taskwarrior#data#get_query()
let val = has_key(dict, a:column) ?
\ dict[a:column] : ''
let dict = taskwarrior#data#get_query()[0]
let val = get(dict, a:column, '')
if type(val) == type('')
return val
elseif type(val) == type([])
Expand Down Expand Up @@ -92,7 +91,7 @@ function! taskwarrior#data#get_query(...)
if uuid == ''
return {}
endif
return webapi#json#decode(system('task rc.verbose=off '.uuid.' export'))
return webapi#json#decode(system('task '.uuid.' export'))
endfunction

function! taskwarrior#data#global_stats()
Expand Down

0 comments on commit 3063dd7

Please sign in to comment.