Missed PyLint errors

This commit is contained in:
Michał Gdula 2023-04-02 17:00:32 +00:00
parent 7b97b8e0ef
commit 94ea3a1f30
4 changed files with 6 additions and 6 deletions

View file

@ -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 = []