dikkini

wooooh

Aug 10th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1.     r = {
  2.         'success': True
  3.     }
  4.     request_demo_json_str = json.dumps(request.form)
  5.     request_demo_dict = json.loads(request_demo_json_str)
  6.     email = request_demo_dict['email']
  7.     text = request_demo_dict['text']
  8.  
  9.     with open(str(email) + ".txt", "w+") as f:
  10.         f.write(text)
  11.  
  12.     return jsonify(r)
Advertisement
Add Comment
Please, Sign In to add comment