mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2024-12-28 18:36:21 +00:00
PyLint
This commit is contained in:
parent
02d99a1671
commit
cc613f9fe9
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue