Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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
|