Skip to content

Commit

Permalink
Remove variables from api.org
Browse files Browse the repository at this point in the history
  • Loading branch information
aashay committed Dec 25, 2016
1 parent 07b6018 commit 07e8203
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/runtime/rest/api.org
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@

#+NAME: get_analytics
#+BEGIN_SRC python
elastic_host = "http://vlabs-analytics.vlabs.ac.in"
elastic_port = 9400
elastic_index = "vlabs"
elastic_doc_type = "usage"
#elastic_host = "http://vlabs-analytics.vlabs.ac.in"
#elastic_port = 9400
#elastic_index = "vlabs"
#elastic_doc_type = "usage"

@api.route('/<analytics>',methods= ['GET','POST'])
def fetch_analytics(analytics):
Expand All @@ -63,9 +63,7 @@ def fetch_analytics(analytics):
data = res.text
ip_dir = ast.literal_eval(data)
data_dict["REGION"] = ip_dir["region_name"]
#print type(ip_dir)
#print ip_dir


json_data = json.dumps(data_dict)


Expand Down Expand Up @@ -107,6 +105,7 @@ api = Blueprint('APIs', __name__)

#+end_src


* Tangle :boilerplate:

** sources
Expand Down

0 comments on commit 07e8203

Please sign in to comment.