2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

FEATURE: Zendesk importer that uses its API to get data

This commit is contained in:
Neil Lalonde 2018-08-28 10:21:39 -04:00
parent 83bf641292
commit 15f657309a
3 changed files with 311 additions and 1 deletions

View file

@ -873,7 +873,7 @@ class ImportScripts::Base
@start_times.fetch(key) { |k| @start_times[k] = Time.now }
end
def batches(batch_size)
def batches(batch_size = 1000)
offset = 0
loop do
yield offset