DC - Minor update

data-collector
Steve L. Nyemba 7 years ago
parent e18ad7e123
commit 64a69b8156

@ -1,6 +1 @@
{
"key":"nyemba@gmail.com",
"id":"maori",
"apps":"chrome,preview,itunes",
"folders":"/Users/steve/tmp"
}
05d1c53b-e464-486c-9272-e351836e7a97

@ -33,7 +33,11 @@ class Collector(Thread) :
for id in ['apps','folders']:
if id in SYS_ARGS :
SYS_ARGS[id] = SYS_ARGS[id].split(',')
#
# Let's open the file with the key (nothing else should be in the file
f = open(SYS_ARGS['key'])
SYS_ARGS['key'] = f.read()
f.close()
headers = {"key":SYS_ARGS["key"],"id":SYS_ARGS["id"]} #,"scope":json.dumps(scope)}
headers['content-type'] = 'application/json'

Loading…
Cancel
Save