Skip to content

Commit

Permalink
jk wrong fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gracexin2003 committed Sep 20, 2023
1 parent 0713726 commit 2fc2d8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions albumy/blueprints/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ def delete_photo(photo_id):
abort(403)

db.session.delete(photo)
db.session.commit()
flash('Photo deleted.', 'info')

photo_n = Photo.query.with_parent(photo.author).filter(Photo.id < photo_id).order_by(Photo.id.desc()).first()
Expand Down

0 comments on commit 2fc2d8b

Please sign in to comment.