Broken URL at /status/import/?importid=126
Issue #7
resolved
The URL on the page that renders when you navigate to http://127.0.0.1:8000/status/import/?importid=126 is broken.
Looks like its in the javascript:
function getStatus(importid,update_div){
url=api_server_address+"import/status/?importid=" + importid;
//$(update_div).append("<p><h4> Retriving " + importid + " status.</h4></p>");
$.getJSON(url,function(data){
console.log(data);
var $bar = $('.bar');
var p1 = "";
//$(update_div).append("<p><h4> Retriving " + data + " status.</h4></p>");
if (data.completed == "True"){
p1 = "<b> Your data upload has been completed. Please click <a href='/corrections?importid='"+this.importid+"'> here </a>"+
"to make corrections.</b><br />";
}if (!data.started){
p1 = "<b> Your data is in the queue to be processed. Please check back at a later time.</b><br/>";
}
if (data.dateend == "None"){
data.dateend = "";
}if(data.datestarted == "None"){
data.datestarted = "";
}
var p2 = "<b>Number of data rows: </b>" + data.total_data_rows + "<br/>" +
"<b>Date analysis started: </b>" + data.datestarted + "<br/>" +
"<b>Date analysis ended: </b>" + data.dateend + "<br/>"+
"<b>Filename: </b>" + data.filename +"</br>";
//var percent_done = (data.number_of_rows_analyised/data.total_data_rows) * 100;
$bar.width(0);
$(update_div).append(p1);
$(update_div).append(p2);
});
Comments (2)
-
reporter -
reporter - changed status to resolved
Resolved in 80c0db8.
- Log in to comment
Ends up navigating the user to http://127.0.0.1:8000/corrections?importid=
should be :
/corrections/correct?importid=importid