예제 #1
0
파일: views.py 프로젝트: plutoese/mars
def userdata():
    up_file = UploadFile()
    mdata = up_file.names_and_authors_and_linkes
    if request.method == 'POST':
        mdata = up_file.get_excel_data(request.form.get('file'))
        session['filename'] = mdata.get('filename')
        return render_template("queryresult.html", header=mdata.get('header'), data=mdata.get('data'))
    return render_template('userdata.html',data=mdata)
예제 #2
0
파일: views.py 프로젝트: plutoese/mars
def jquerylearning():
    up_file = UploadFile()
    mdata = up_file.names_and_authors_and_linkes
    if request.method == 'POST':
        mdata = up_file.get_excel_data(request.form.get('file'))
        print(mdata)
        return render_template("queryresult.html", header=mdata.get('header'), data=mdata.get('data'))
    return render_template('jquerylearning.html',data=mdata)
예제 #3
0
파일: views.py 프로젝트: plutoese/mars
def mydataset():
    up_file = UploadFile()
    mdata = up_file.get_excel_data(session['savedfile'])
    return render_template("queryresult.html", header=mdata.get('header'), data=mdata.get('data'))