Exemplo n.º 1
0
def get_brew_label(brew_id):
    output = make_pdf('http://127.0.0.1/view/{}'.format(brew_id))
    response = make_response(output)
    response.headers['Content-Disposition'] = 'attachment; filename=qr.pdf'
    response.mimetype = 'application/pdf'
    return response
Exemplo n.º 2
0
def prepare_brew_label(brew_id):
    output = make_pdf('http://127.0.0.1/view/{}'.format(brew_id))
    return "", 201
Exemplo n.º 3
0
def prepare_brew_label(brew_id):
    output = make_pdf('http://127.0.0.1/view/{}'.format(brew_id))
    return jsonify(success=True)