euscanwww: Removing duplicated code
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
@ -22,11 +22,7 @@ class ScanUpstream(object):
|
||||
CONFIG["format"] = "dict"
|
||||
output.set_query(package)
|
||||
|
||||
ret = scan_upstream(package)
|
||||
if ret is not None:
|
||||
if len(ret) > 0:
|
||||
for cp, url, version, handler, confidence in ret:
|
||||
output.result(cp, version, url, handler, confidence)
|
||||
scan_upstream(package)
|
||||
|
||||
out = output.get_formatted_output()
|
||||
out_json = output.get_formatted_output("json")
|
||||
|
@ -68,10 +68,13 @@
|
||||
var url = "{% url "apply_task" "task_name" %}";
|
||||
|
||||
$.post(url.replace("task_name", task_name), data, function() {
|
||||
//location.reload();
|
||||
alert("Submitted!");
|
||||
location.reload();
|
||||
});
|
||||
});
|
||||
|
||||
setTimeout(location.reload, 10000);
|
||||
|
||||
});
|
||||
})(django.jQuery);
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user