예제 #1
0
def DA_PNG():
    from .plots.data_availability import main

    output = BytesIO()
    main(show=False, outfile=output)
    output.seek(0)
    return flask.Response(output.read(), mimetype="image/png")
예제 #2
0
def bugreporter():
    from .bugreport import main
    output = main(modules=True, show=False)

    o = json.dumps(output)
    db.close()
    return flask.Response(o, mimetype='application/json')
예제 #3
0
def bugreporter():
    from .bugreport import main
    output = main(modules=True, show=False)

    o = json.dumps(output)
    db.close()
    return flask.Response(o, mimetype='application/json')
예제 #4
0
def new_jobsTRIG():
    from s02new_jobs import main
    count = main()
    global db
    db.flush()
    db.commit()

    o = {}
    o['count'] = count
    o = json.dumps(o)
    return flask.Response(o, mimetype='application/json')
예제 #5
0
def new_jobsTRIG():
    from s02new_jobs import main
    count = main()
    global db
    db.flush()
    db.commit()

    o = {}
    o['count']=count
    o = json.dumps(o)
    return flask.Response(o, mimetype='application/json')
예제 #6
0
def DA_PNG():
    from .plots.data_availability import main
    output = BytesIO()
    main(show=False, outfile=output)
    output.seek(0)
    return flask.Response(output.read(), mimetype='image/png')