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:51:45 UTC
[21/50] [abbrv] incubator-spot git commit: fix indentation problems
fix indentation problems
Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/2c3f3d3b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/2c3f3d3b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/2c3f3d3b
Branch: refs/heads/SPOT-35_graphql_api
Commit: 2c3f3d3b11443c5b1516fde576b30ec303aac806
Parents: a32d3ed
Author: Everardo Lopez Sandoval (Intel) <el...@elopezsa-mac02.zpn.intel.com>
Authored: Wed Mar 8 17:16:35 2017 -0600
Committer: Diego Ortiz Huerta <di...@intel.com>
Committed: Wed Mar 15 11:49:48 2017 -0700
----------------------------------------------------------------------
spot-oa/api/resources/flow.py | 2 +-
spot-oa/api/resources/proxy.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/2c3f3d3b/spot-oa/api/resources/flow.py
----------------------------------------------------------------------
diff --git a/spot-oa/api/resources/flow.py b/spot-oa/api/resources/flow.py
index 14d7132..665d4cd 100755
--- a/spot-oa/api/resources/flow.py
+++ b/spot-oa/api/resources/flow.py
@@ -235,7 +235,7 @@ def score_connection(score,date,src_ip=None,dst_ip=None,src_port=None,dst_port=N
insert_command = ("""
INSERT INTO {0}.flow_threat_investigation
PARTITION (y={1},m={2},d={3})
- VALUES (""")
+ VALUES (""") \
.format(db,date.year,date.month,date.day)
fb_data = []
http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/2c3f3d3b/spot-oa/api/resources/proxy.py
----------------------------------------------------------------------
diff --git a/spot-oa/api/resources/proxy.py b/spot-oa/api/resources/proxy.py
index 5edafe2..49f78a1 100644
--- a/spot-oa/api/resources/proxy.py
+++ b/spot-oa/api/resources/proxy.py
@@ -91,7 +91,7 @@ def score_request(date,score,uri):
# add score to connections
insert_command = ("""
INSERT INTO {0}.proxy_threat_investigation PARTITION (y={1},m={2},d={3})
- VALUES (""")
+ VALUES (""") \
.format(db,date.year,date.month,date.day)
fb_data = []
@@ -112,7 +112,7 @@ def score_request(date,score,uri):
first = False
insert_command += ")"
- ImpalaEngine.execute_query(insert_command)
+ ImpalaEngine.execute_query(insert_command)
# create feedback file.
app_path = Configuration.spot()