def downloadqr(data=None): client=currentSession() xbt = Xbt() img = xbt.getqr(data) resp = serve_pil_image(img) resp.headers["Content-Disposition"] = "attachment; filename=" + xbt.getUriAddress(data) + ".png" return resp
def qr(data=None): client=currentSession() xbt = Xbt() img = xbt.getqr(data) return serve_pil_image(img)