Ver Fonte

fixed profile pic upload error

control há 3 anos atrás
pai
commit
8b60ffffa9

BIN
app/database.db


BIN
app/static/uploads/WKHkDcd7ao48Os22.jpeg


BIN
app/static/uploads/Wz0OPkXDarUk0avq.png


BIN
app/static/uploads/kmjxYI71Zm3M3kYM.png


BIN
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%">