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