Esempio 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
Esempio n. 2
0
def prepare_brew_label(brew_id):
    output = make_pdf('http://127.0.0.1/view/{}'.format(brew_id))
    return "", 201
Esempio 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)