Ejemplo n.º 1
0
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')
Ejemplo n.º 2
0
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')
Ejemplo n.º 3
0
def getFile(jobid):
    return send_file(downloadengine.query({'jobid': jobid})['ofile']['name'])
Ejemplo n.º 4
0
def getFile(jobid):
    return send_file(downloadengine.query({'jobid': jobid})['ofile']['name'])