diff --git a/src/templates/profile.html b/src/templates/profile.html index 9843da4..e9eb808 100644 --- a/src/templates/profile.html +++ b/src/templates/profile.html @@ -1,37 +1,37 @@ {% extends 'base.html' %} {% block content %} -{% if current_user.is_authenticated %} -
No images available.
-{% endif %} -{% else %} -Log in to view your profile.
-{% endif %} + {% else %} +No images available.
+ {% endif %} + {% else %} +Log in to view your profile.
+ {% endif %} {% endblock %} \ No newline at end of file diff --git a/src/views/profileview.py b/src/views/profileview.py index dcfafcf..cfd3c74 100644 --- a/src/views/profileview.py +++ b/src/views/profileview.py @@ -21,7 +21,5 @@ class ProfileView(FlaskView): @login_required def index(self): - useritems = Item.query.filter_by(uploader_id=current_user.id) - return render_template('profile.html', images=useritems)