コード例 #1
0
def generateReport():
    try:
        global c 
        c = Categorise(session['file1'],session['file0'],session['target']) 
        # csvoutput = c.run()
        # session['report'] = csvoutput
        c.run()
        return c.getDataFrame1()
    except Exception as e:
        return make_response(jsonify({'error': e.message}), 500)
コード例 #2
0
ファイル: routes.py プロジェクト: neil-hickey/Grid_Finance
def generateReport():
    try:
        global c
        c = Categorise(session['file1'], session['file0'], session['target'])
        # csvoutput = c.run()
        # session['report'] = csvoutput
        c.run()
        return c.getDataFrame1()
    except Exception as e:
        return make_response(jsonify({'error': e.message}), 500)
コード例 #3
0
def generateReport():
    if 'target' in session:
        global c 
        c = Categorise(session['file1'],session['file0'],session['target']) 
        # csvoutput = c.run()
        # session['report'] = csvoutput
        c.run()
        return c.getDataFrame1()
        # return render_template('report.html',data=csvoutput)
    else:
        return error_message()