|
|
@ -316,9 +316,11 @@ function refresh() { |
|
|
|
} |
|
|
|
} |
|
|
|
return response.json() |
|
|
|
return response.json() |
|
|
|
}).then(function (response) { |
|
|
|
}).then(function (response) { |
|
|
|
|
|
|
|
if (!response) { |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
trainData = response |
|
|
|
trainData = response |
|
|
|
onTrainData(response) |
|
|
|
onTrainData(response) |
|
|
|
}).then(function () { |
|
|
|
|
|
|
|
reschedule() |
|
|
|
reschedule() |
|
|
|
}).catch(function (e) { |
|
|
|
}).catch(function (e) { |
|
|
|
// Check in 1 second if network error
|
|
|
|
// Check in 1 second if network error
|
|
|
|