Post submission to EUPI, hide response if the URL is unknown.

travis
Raphaël Vinot 2015-09-09 15:32:24 +02:00
parent 8ecea977e8
commit 2f91def106
2 changed files with 4 additions and 0 deletions

View File

@ -464,6 +464,7 @@ def eupi(url, key, q):
r = response.get('results')[0]['tag_label'] r = response.get('results')[0]['tag_label']
_cache_set(q, r, 'eupi') _cache_set(q, r, 'eupi')
return r return r
eu.post_submission(q)
return None return None

View File

@ -206,6 +206,9 @@
link: function(scope, element, attrs) { link: function(scope, element, attrs) {
var get_response = function(jobID) { var get_response = function(jobID) {
globFct.poller(jobID, function(data){ globFct.poller(jobID, function(data){
if (data === "inconnu"){
return;
}
scope.response = data; scope.response = data;
if(data === "clean"){ if(data === "clean"){
scope.alert_val = "success"; scope.alert_val = "success";