diff --git a/gallery/api.py b/gallery/api.py index b30857d..379e5b1 100644 --- a/gallery/api.py +++ b/gallery/api.py @@ -165,7 +165,7 @@ def modify_group(): action = request.form["action"] group = db.get_or_404(Group, group_id) - image = db.get_or_404(Post, image_id) + db.get_or_404(Post, image_id) # Check if image exists if group.author_id != current_user.id: abort(403) diff --git a/gallery/views/group.py b/gallery/views/group.py index 0491a59..53557cd 100644 --- a/gallery/views/group.py +++ b/gallery/views/group.py @@ -3,7 +3,7 @@ Onlylegs - Image Groups Why groups? Because I don't like calling these albums sounds more limiting that it actually is in this gallery """ -from flask import Blueprint, abort, render_template, url_for +from flask import Blueprint, render_template, url_for from gallery.models import Post, User, GroupJunction, Group from gallery.extensions import db