From 64a69b8156d2c91d1ccd84619ee1aea5296e5d2c Mon Sep 17 00:00:00 2001 From: "Steve L. Nyemba" Date: Fri, 13 Oct 2017 11:59:45 -0500 Subject: [PATCH] DC - Minor update --- config.json | 7 +------ src/data-collector.py | 6 +++++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/config.json b/config.json index 6f45e7d..b285c6e 100644 --- a/config.json +++ b/config.json @@ -1,6 +1 @@ -{ - "key":"nyemba@gmail.com", - "id":"maori", - "apps":"chrome,preview,itunes", - "folders":"/Users/steve/tmp" -} +05d1c53b-e464-486c-9272-e351836e7a97 diff --git a/src/data-collector.py b/src/data-collector.py index 45771ee..e50a84f 100644 --- a/src/data-collector.py +++ b/src/data-collector.py @@ -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'