lib/big_sitemap.rb in alexrabarts-big_sitemap-0.5.0 vs lib/big_sitemap.rb in alexrabarts-big_sitemap-0.5.1

- old
+ new

@@ -97,10 +97,10 @@ num_batches = (count.to_f / @options[:batch_size].to_f).ceil num_sitemaps = (count.to_f / @options[:max_per_sitemap].to_f).ceil end batches_per_sitemap = num_batches.to_f / num_sitemaps.to_f - find_options = options.except(:path, :num_items, :priority, :change_frequency) + find_options = options.except(:path, :num_items, :priority, :change_frequency, :last_modified) for sitemap_num in 1..num_sitemaps # Work out the start and end batch numbers for this sitemap batch_num_start = sitemap_num == 1 ? 1 : ((sitemap_num * batches_per_sitemap).ceil - batches_per_sitemap + 1).to_i batch_num_end = (batch_num_start + [batches_per_sitemap, num_batches].min).floor - 1 \ No newline at end of file