From 2f91def1065951065ca5df176063bba719488bdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 9 Sep 2015 15:32:24 +0200 Subject: [PATCH] Post submission to EUPI, hide response if the URL is unknown. --- url_abuse_async.py | 1 + web/static/main.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/url_abuse_async.py b/url_abuse_async.py index 24cba91..6b49b25 100644 --- a/url_abuse_async.py +++ b/url_abuse_async.py @@ -464,6 +464,7 @@ def eupi(url, key, q): r = response.get('results')[0]['tag_label'] _cache_set(q, r, 'eupi') return r + eu.post_submission(q) return None diff --git a/web/static/main.js b/web/static/main.js index 3ed1e45..b2f971f 100644 --- a/web/static/main.js +++ b/web/static/main.js @@ -206,6 +206,9 @@ link: function(scope, element, attrs) { var get_response = function(jobID) { globFct.poller(jobID, function(data){ + if (data === "inconnu"){ + return; + } scope.response = data; if(data === "clean"){ scope.alert_val = "success";