From b28a5b46ab1ca34746dc7cfe60c9aedc88ebe0b2 Mon Sep 17 00:00:00 2001 From: Josef Skladanka Date: May 07 2014 14:09:02 +0000 Subject: T149 - Revert logic of 'was email sent' Summary: Changed the logic of storing "was email sent" in order to show the "more meaningfull" value in the frontend. Test Plan: Unittests work Reviewers: tflink, mkrizek CC: tflink Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D86 --- diff --git a/fake_fedorainfra/controllers/main.py b/fake_fedorainfra/controllers/main.py index 16deb69..9be6e0e 100644 --- a/fake_fedorainfra/controllers/main.py +++ b/fake_fedorainfra/controllers/main.py @@ -45,7 +45,7 @@ def bodhi_comment(): current_time = str(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S')) db.session.add(BodhiComment(current_time, str( request.form['title']), str(request.form['text']), str(request.form['user_name']), - int(request.form['karma']), request.form['email'] in ['false', 'False'])) + int(request.form['karma']), request.form['email'] in ['true', 'True'])) db.session.commit() return json.dumps(default_response)