Mercurial > repos > fabio > btman
diff query.py @ 16:ba9d0fc8657f draft
Uploaded 20190118
author | fabio |
---|---|
date | Fri, 18 Jan 2019 10:12:19 -0500 |
parents | 9ec4acef30ed |
children |
line wrap: on
line diff
--- a/query.py Tue Apr 24 13:29:16 2018 -0400 +++ b/query.py Fri Jan 18 10:12:19 2019 -0500 @@ -42,7 +42,6 @@ # create a session session = requests.Session(); # make a synchronous post request to the query route - QUERY_URL.replace("<tree_id>", str(options.treeid)); req = session.post(QUERY_URL.replace("<tree_id>", str(options.treeid)), headers=headers, json=payload); resp_code = req.status_code; #print(str(req.content)+"\n\n"); @@ -193,7 +192,7 @@ action="store", dest="search", help="search mode"); parser.add_option("-e", "--exact", type="int", default=0, action="store", dest="exact", help="exact algorithm (required if search is 1 only)"); - parser.add_option("-k", "--tree", type="int", default=0, + parser.add_option("-k", "--tree", type="string", default=0, action="store", dest="treeid", help="the id of the tree that will be queried"); parser.add_option("-t", "--sthreshold", type="float", action="store", dest="sthreshold", help="threshold applied to the search algrithm");