Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix calculation of the max page to query for.

  • Loading branch information...
commit ef8d6a194ba36193f41320f116856ccc1273e15e 1 parent 13aef4c
@mtodd authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.