Skip to content

Commit

Permalink
Merge pull request #26 from gracexin2003/main
Browse files Browse the repository at this point in the history
jk wrong fix
  • Loading branch information
gracexin2003 authored Sep 20, 2023
2 parents 57c9572 + 2fc2d8b commit 26f92ba
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 26f92ba

Please sign in to comment.