Skip to content
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.

Commit

Permalink
Get whole odesk history, not only two weeks.
Browse files Browse the repository at this point in the history
  • Loading branch information
dividedmind committed Dec 30, 2012
1 parent 545fdb6 commit cad40cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/odesk_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def me
end

def hours
convert_table(get(URI.escape("/gds/timereports/v1/providers/#{user_id}?tq=SELECT worked_on, SUM(hours) WHERE worked_on > '#{2.weeks.ago.to_date}' ORDER BY worked_on DESC"))['table'])
convert_table(get(URI.escape("/gds/timereports/v1/providers/#{user_id}?tq=SELECT worked_on, SUM(hours) ORDER BY worked_on DESC"))['table'])
end

private
Expand Down

0 comments on commit cad40cf

Please sign in to comment.