diff --git a/app/models.py b/app/models.py index a95b5da02..ae2a2d552 100644 --- a/app/models.py +++ b/app/models.py @@ -190,7 +190,7 @@ class User(db.Model): return retval def serialize(self): - x = { + return { "id": self.id, "name": self.name, "email_address": self.email_address, @@ -213,8 +213,6 @@ class User(db.Model): "state": self.state, "preferred_timezone": self.preferred_timezone, } - print(f"X = {x}") - return x def serialize_for_users_list(self): return { diff --git a/app/user/rest.py b/app/user/rest.py index 65c0d4ebe..25714d94a 100644 --- a/app/user/rest.py +++ b/app/user/rest.py @@ -117,7 +117,6 @@ def update_user_attribute(user_id): recipient = user_to_update.mobile_number reply_to = get_sms_reply_to_for_notify_service(recipient, template) else: - print(f"REST1 returns {user_to_update.serialize()}") return jsonify(data=user_to_update.serialize()), 200 service = Service.query.get(current_app.config["NOTIFY_SERVICE_ID"]) @@ -139,7 +138,6 @@ def update_user_attribute(user_id): send_notification_to_queue(saved_notification, queue=QueueNames.NOTIFY) - print(f"REST2 returns {user_to_update.serialize()}") return jsonify(data=user_to_update.serialize()), 200