def query_command(): return Response( json.dumps(downloadengine.query( json.loads(request.data.decode(u"utf-8"))[u"downloadengine"])), mimetype='application/json; charset=utf-8')
def query_command(): return Response(json.dumps( downloadengine.query( json.loads(request.data.decode(u"utf-8"))[u"downloadengine"])), mimetype='application/json; charset=utf-8')
def getFile(jobid): return send_file(downloadengine.query({'jobid': jobid})['ofile']['name'])