Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @app.route('/test',methods = ['POST', 'GET'])
- def result():
- if request.method == 'POST':
- result = form.request
- formArray = dict.items(result)
- with open('path\reviews.csv', 'a') as f:
- writer = csv.writer(f, delimiter=',', lineterminator='n')
- writer.writerows(formArray)
- f.close()
- return render_template("test.html",result = result)
Add Comment
Please, Sign In to add comment