You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spot.apache.org by ev...@apache.org on 2017/03/29 16:52:00 UTC

[36/50] [abbrv] incubator-spot git commit: Removed proxy scored connections from the list

Removed proxy scored connections from the list


Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/c1be09ef
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/c1be09ef
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/c1be09ef

Branch: refs/heads/SPOT-35_graphql_api
Commit: c1be09efc2249be257c60be26644b2b9cc3d2a92
Parents: bb8847a
Author: LedaLima <le...@apache.org>
Authored: Fri Mar 10 11:35:53 2017 -0600
Committer: Diego Ortiz Huerta <di...@intel.com>
Committed: Wed Mar 15 11:50:20 2017 -0700

----------------------------------------------------------------------
 .../oa/proxy/ipynb_templates/Edge_Investigation_master.ipynb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/c1be09ef/spot-oa/oa/proxy/ipynb_templates/Edge_Investigation_master.ipynb
----------------------------------------------------------------------
diff --git a/spot-oa/oa/proxy/ipynb_templates/Edge_Investigation_master.ipynb b/spot-oa/oa/proxy/ipynb_templates/Edge_Investigation_master.ipynb
index 50041af..b173fe8 100644
--- a/spot-oa/oa/proxy/ipynb_templates/Edge_Investigation_master.ipynb
+++ b/spot-oa/oa/proxy/ipynb_templates/Edge_Investigation_master.ipynb
@@ -102,7 +102,7 @@
     "    \n",
     "    scored = []\n",
     "    for item in score_values:\n",
-    "        scored.append(urllib.quote_plus(item[0]))\n",
+    "	     scored.append(urllib.quote_plus(item[0]))\n",
     "        \n",
     "    if not 'errors' in response: \n",
     "        for row in response['data']['proxy']['suspicious']:\n",
@@ -141,9 +141,7 @@
     "def assign_score(b): \n",
     "    clear_output()\n",
     "    uri = quick_text.value or uri_select.value\n",
-    "    uri_sev = int(rating_btn.selected_label) if not \"- Select -\" in uri_select.value else \"\"\n",
-    "    \n",
-    "    clear_output() \n",
+    "    uri_sev = int(rating_btn.selected_label) \n",
     "    \n",
     "    global score_values\n",
     "    \n",
@@ -151,6 +149,8 @@
     "        \n",
     "    if uri_select.value != \"- Select -\":\n",
     "        display(Javascript(\"$(\\\"option[data-value='\" + urllib.quote_plus(uri_select.value) +\"']\\\").remove();\"))\n",
+    "    else:\n",
+    "        display(Javascript(\"$(\\\"option[data-value$='\" + uri +\"']\\\").remove();\"))\n",
     "      \n",
     "    clear_output()\n",
     "    data_loader()\n",