Skip to content

Commit

Permalink
Add secret key support
Browse files Browse the repository at this point in the history
  • Loading branch information
iandioch committed Apr 27, 2016
1 parent e8cdd40 commit d21ccae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions visualisations/model_error/model_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def db_get(collection, query, projection):
'query': query,
'projection': projection
}
key = os.getenv('SECRETKEY')
if key is not None:
db_req['key'] = key
str_bson_db_req = str(bson.BSON.encode(db_req))
raw_db_result = gearman_client.submit_job('db-get', str_bson_db_req).result
db_result = bson.BSON.decode(bson.BSON(raw_db_result))
Expand Down

0 comments on commit d21ccae

Please sign in to comment.