Compare commits
No commits in common. "1ca3cb328884fec269b4ae72e27083434c526f2b" and "f368186328e90b3439bc2b94e25c98a6f502f12c" have entirely different histories.
1ca3cb3288
...
f368186328
@ -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