Fix bug.
This commit is contained in:
parent
4116037d83
commit
b58d757848
|
@ -1,10 +1,12 @@
|
||||||
Rails.application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
Thread.new do
|
if ENV['worker_num']=='0' && File.basename($0) != 'rake' && !Rails.const_defined?('Console')
|
||||||
c = Cancerpredictfields.last
|
Thread.new do
|
||||||
if c
|
c = Cancerpredictfields.last
|
||||||
sleep(5)
|
if c
|
||||||
c.save
|
sleep(5)
|
||||||
c.auto_write_predict_js
|
c.save
|
||||||
|
c.auto_write_predict_js
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
locales = Site.first.in_use_locales rescue I18n.available_locales
|
locales = Site.first.in_use_locales rescue I18n.available_locales
|
||||||
|
|
Loading…
Reference in New Issue