瀏覽代碼

fixed profile pic upload error

control 3 年之前
父節點
當前提交
8b60ffffa9

二進制
app/database.db


二進制
app/static/uploads/WKHkDcd7ao48Os22.jpeg


二進制
app/static/uploads/Wz0OPkXDarUk0avq.png


二進制
app/static/uploads/kmjxYI71Zm3M3kYM.png


二進制
app/static/uploads/nqYzr24zISdSB3jo.png


+ 1 - 1
app/templates/home.html

@@ -9,7 +9,7 @@
 <!------  Profile Information ---------->
 <p>Profile Information</p>
 <div class="card">
-    {% if current_user.profile_image %}
+    {% if user.profile_image %}
     <img src="static/uploads/{{ user.profile_image }}" style="width:100%">
     {% else %}
     <img src="static/uploads/defaultprofileimg/defaultprofileimg.png" style="width:100%">