remove timezone offset from feeds calculations

This commit is contained in:
Lee Lawlor
2014-12-03 10:50:25 -05:00
parent 435fe52e4a
commit fca4dca38d
2 changed files with 2 additions and 4 deletions

View File

@ -32,7 +32,7 @@ class FeedFactory < ApplicationController
# calculate the limit that should be used
def calculate_limit
limit = 100
limit = 8000 if @options[:results].present? || @options[:days].present? || @options[:start].present? || @options[:end].present?
limit = 8000 if @options[:results].present? || @options[:days].present? || @options[:start].present? || @options[:end].present? || @options[:start_entry_id] || @options[:end_entry_id]
limit = @options[:results].to_i if (@options[:results].present? && @options[:results].to_i < 8000)
return limit
end