removed non-functional bad UUID checking, needs work

pull/73/head
jonsowman 2010-07-21 13:32:43 +01:00
rodzic 80edc67d72
commit e8927ab697
1 zmienionych plików z 5 dodań i 10 usunięć

Wyświetl plik

@ -37,17 +37,12 @@ $(document).ready(function() {
populateFormByUUID(current_uuid);
appendDebug("Trying to get progress JSON");
$.getJSON("preds/"+current_uuid+"/progress.json", function(progress) {
if ( progress != null ) {
appendDebug("Got progress JSON from server for UUID");
if ( progress['error'] || !progress['pred_complete'] ) {
appendDebug("The prediction was not completed correctly, quitting");
} else {
writePredictionInfo(current_uuid, progress['run_time'], progress['gfs_timestamp']);
getCSV(current_uuid);
}
appendDebug("Got progress JSON from server for UUID");
if ( progress['error'] || !progress['pred_complete'] ) {
appendDebug("The prediction was not completed correctly, quitting");
} else {
appendDebug("Couldn't find the progress JSON for the supplied UUID");
throwError("You requested a UUID that doesn't seem to exist on the server. Please re-run");
writePredictionInfo(current_uuid, progress['run_time'], progress['gfs_timestamp']);
getCSV(current_uuid);
}
});
}