Compare commits
No commits in common. "d55d58a3c2bda04b101768ac0556d69399c50f31" and "456f5b42c95f0a8590c85f17bad767cf98c88ee8" have entirely different histories.
d55d58a3c2
...
456f5b42c9
@ -137,7 +137,7 @@ def admin():
|
||||
form = DeleteForm(request.form)
|
||||
|
||||
if form.validate_on_submit():
|
||||
link = AnimeLink.query.filter_by(id=int(form.id.data)).first()
|
||||
link = AnimeLink.query.filter_by(id=form.id.data).first()
|
||||
if link:
|
||||
form.message = '%s (%s) has been successfully deleted' % (
|
||||
link.title.name,
|
||||
@ -171,7 +171,7 @@ def folder_list():
|
||||
form = FolderDeleteForm(request.form)
|
||||
|
||||
if form.validate_on_submit():
|
||||
folder = AnimeFolder.query.filter_by(id=int(form.id.data)).first()
|
||||
folder = AnimeFolder.query.filter_by(id=form.id.data).first()
|
||||
if folder:
|
||||
form.message = '%s has been successfully deleted' % folder.name
|
||||
db.session.delete(folder)
|
||||
|
Reference in New Issue
Block a user