diff --git a/app.py b/app.py index d939189..7f400f5 100644 --- a/app.py +++ b/app.py @@ -862,7 +862,7 @@ def logout(): @login_required def delete(content_type, content_id): if content_type == 'art': - content = Art.query.get_or_404(content_id) + content = Image.query.get_or_404(content_id) file_path = os.path.join(app.config['UPLOAD_FOLDER']['arts'], content.image_file) elif content_type == 'video': content = Video.query.get_or_404(content_id) diff --git a/templates/view.html b/templates/view.html index 9796c0d..dffb887 100644 --- a/templates/view.html +++ b/templates/view.html @@ -51,18 +51,6 @@ {% endif %} -
-

Votes: {{ content.cookie_votes }} 🍪

- {% if current_user.is_authenticated %} -
- - -
- {% else %} -

You need to log in to vote.

- {% endif %} -
- {% if current_user.is_authenticated and current_user.username == content.username %}