Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- r = {
- 'success': True
- }
- request_demo_json_str = json.dumps(request.form)
- request_demo_dict = json.loads(request_demo_json_str)
- email = request_demo_dict['email']
- text = request_demo_dict['text']
- with open(str(email) + ".txt", "w+") as f:
- f.write(text)
- return jsonify(r)
Advertisement
Add Comment
Please, Sign In to add comment