nagasurendra commited on
Commit
d5928b0
·
verified ·
1 Parent(s): 2fffb7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -112,10 +112,9 @@ def edit_profile():
112
  # Update Salesforce record
113
  sf.Customer_Login__c.update(user_id, update_data)
114
 
115
- return render_template("edit_profile.html", user_name=new_name, user_phone=new_phone, user_email=new_email, success=True)
116
 
117
  except Exception as e:
118
- print(f"Error updating profile: {str(e)}")
119
  return render_template("edit_profile.html", user_name=user_name, user_phone=user_phone, user_email=user_email, error=str(e))
120
 
121
  import re
 
112
  # Update Salesforce record
113
  sf.Customer_Login__c.update(user_id, update_data)
114
 
115
+ return redirect(url_for('customer_details'))
116
 
117
  except Exception as e:
 
118
  return render_template("edit_profile.html", user_name=user_name, user_phone=user_phone, user_email=user_email, error=str(e))
119
 
120
  import re