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