Skip to content
Browse files

Fix calculation of the max page to query for.

  • Loading branch information...
1 parent 13aef4c commit ef8d6a194ba36193f41320f116856ccc1273e15e @mtodd committed Jan 18, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 app/endpoints/tweets.rb
View
3 app/endpoints/tweets.rb
@@ -1,7 +1,6 @@
helpers do
def get_tweets(username, results = [])
- # MAX_RESULTS / REQUESTS_PER_PAGE
- 1.upto(3) do |page|
+ 1.upto(MAX_RESULTS / REQUESTS_PER_PAGE) do |page|
results.concat(Twitter.timeline(username, :page => page, :rpp => REQUESTS_PER_PAGE))
end
results

0 comments on commit ef8d6a1

Please sign in to comment.
Something went wrong with that request. Please try again.