Skip to content
Permalink
Browse files
Fixed bug
  • Loading branch information
michellebeard committed Sep 19, 2017
1 parent a9207bb commit db6ae4b151f1f46863f2f66b36918e01891f103d
Showing 1 changed file with 5 additions and 5 deletions.
@@ -70,7 +70,7 @@ def generate_graph(app,
if events:
include_events = {
"terms": {
"type.keyword": events
"type": events
}
}
filter_query.append(include_events)
@@ -81,7 +81,7 @@ def generate_graph(app,
if target_in:
include_targets = {
"terms": {
"target.keyword": target_in
"target": target_in
}
}

@@ -91,7 +91,7 @@ def generate_graph(app,
for target in target_out:
res = {
"term": {
"target.keyword": target
"target": target
}
}
must_not_query.append(res)
@@ -437,8 +437,8 @@ def generate_graph(app,
res['nodes'] = node_map
res['links'] = links
res['sessions'] = sessions
with open('sankey.json', 'w') as outfile:
json.dump(res, outfile, sort_keys=False, indent=4)
# with open('sankey.json', 'w') as outfile:
# json.dump(res, outfile, sort_keys=False, indent=4)

# with open('data.txt', 'w') as outfile:
# json.dump(intervalSessions, outfile, indent=4, sort_keys=False)

0 comments on commit db6ae4b

Please sign in to comment.