mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -05:00
remove print statements
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user