mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 11:36:16 +00:00
Missed PyLint errors
This commit is contained in:
parent
7b97b8e0ef
commit
94ea3a1f30
4 changed files with 6 additions and 6 deletions
|
@ -54,7 +54,7 @@ def group(group_id):
|
|||
group = (db_session.query(db.Groups)
|
||||
.filter(db.Groups.id == group_id)
|
||||
.first())
|
||||
|
||||
|
||||
if group is None:
|
||||
abort(404, 'Group not found! D:')
|
||||
|
||||
|
@ -108,8 +108,8 @@ def group_post(group_id, image_id):
|
|||
|
||||
# Get all groups the image is in
|
||||
groups = (db_session.query(db.GroupJunction.group_id)
|
||||
.filter(db.GroupJunction.post_id == image_id)
|
||||
.all())
|
||||
.filter(db.GroupJunction.post_id == image_id)
|
||||
.all())
|
||||
|
||||
# Get the group data for each group the image is in
|
||||
image.groups = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue