(Lisp)
This commit is contained in:
parent
6497382e7c
commit
249fd96f9b
|
@ -82,7 +82,7 @@ class Exporter
|
||||||
File.open target_file, 'wb' do |f|
|
File.open target_file, 'wb' do |f|
|
||||||
f.binmode
|
f.binmode
|
||||||
data = if url.start_with?('/system')
|
data = if url.start_with?('/system')
|
||||||
File.read(Rails.root.join('public', url)
|
File.read(Rails.root.join('public', url))
|
||||||
else
|
else
|
||||||
HTTParty.get(url).parsed_response
|
HTTParty.get(url).parsed_response
|
||||||
end
|
end
|
||||||
|
@ -98,7 +98,7 @@ class Exporter
|
||||||
File.open target_file, 'wb' do |f|
|
File.open target_file, 'wb' do |f|
|
||||||
f.binmode
|
f.binmode
|
||||||
data = if url.start_with?('/system')
|
data = if url.start_with?('/system')
|
||||||
File.read(Rails.root.join('public', url)
|
File.read(Rails.root.join('public', url))
|
||||||
else
|
else
|
||||||
HTTParty.get(url).parsed_response
|
HTTParty.get(url).parsed_response
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue