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:
parent
83bf641292
commit
15f657309a
3 changed files with 311 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue