Commit 57089bbd authored by aknecht2's avatar aknecht2
Browse files

Added debug option to database class.

parent 23fcddbf
......@@ -13,7 +13,8 @@ import hashlib
class MongoDB(object):
def __init__(self, host, username, password):
def __init__(self, host, username, password, debug=False):
self.debug = debug
self.host = host
self.username = username
self.password = password
......@@ -62,6 +63,8 @@ class MongoDB(object):
else:
for arg_name in arg_keys:
query[job.job_name + "." + arg_name] = job_args[arg_name]
if self.debug:
print "Result query: %s" % (query,)
return query
def result_exists(self, result, genome):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment