def run_pdf_report(): with open('./src/reports/barcode.data.json') as f: event = json.loads(f.read()) event['eventName'] = '/pdf' return Response(response=call(command=["node", "dist/app.js"], event=event), mimetype="application/pdf")
def run_barcode_test_report(): with open('./src/examples/barcode.data.json') as f: event = json.loads(f.read()) event['eventName'] = '/barcode-test' return call(command=["node", "dist/app.js"], event=event)
def run_fba_report(): with open('./src/reports/barcode.data.json') as f: event = json.loads(f.read()) event['eventName'] = '/fba-a4' return call(command=["node", "dist/app.js"], event=event)