def post(self): result = spreadsheetData() dataframe = generateDataframe(result) month = request.get_json() batches = getBatchesForMonth(dataframe, month["month"]) print(pd.Series(batches).to_json(orient='values')) # return jsonify(np.ndarray.tolist(batches)) return jsonify(pd.Series(batches).to_json(orient='values'))
def post(self): result = spreadsheetData() dataframe = generateDataframe(result) jsonData = request.get_json() month = jsonData["month"] batch = jsonData["batch"] dataframeData = getBatchDataForMonth(dataframe, batch, month) generateInvoices(dataframeData) return 201
def post(self): result = spreadsheetData() dataframe = generateDataframe(result) jsonData = request.get_json() month = jsonData["month"] batch = jsonData["batch"] dataframeData = getBatchDataForMonth(dataframe, batch, month) print(dataframeData) return pd.DataFrame(dataframeData).to_json(orient="split")
def post(self): result = spreadsheetData() dataframe = generateDataframe(result) jsonData = request.get_json() month = jsonData["month"] batch = jsonData["batch"] dataframeData = getBatchDataForMonth(dataframe, batch, month) messages = generateMessage(dataframeData) print(messages) return json.dumps(messages), 200
def get(self): result = spreadsheetData() dataframe = generateDataframe(result) months = getMonths(dataframe) print(months) return pd.Series(months).to_json(orient='values'), 200