Compare commits

..

2 Commits

Author SHA1 Message Date
1ca3cb3288 Merge branch 'master' into renovate/python-3.x
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is passing
2022-03-19 09:29:42 +00:00
79891063a1 Fix deletion on postgres
All checks were successful
continuous-integration/drone/push Build is passing
2022-03-18 20:00:35 +00:00

View File

@ -137,7 +137,7 @@ def admin():
form = DeleteForm(request.form)
if form.validate_on_submit():
link = AnimeLink.query.filter_by(id=form.id.data).first()
link = AnimeLink.query.filter_by(id=int(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=form.id.data).first()
folder = AnimeFolder.query.filter_by(id=int(form.id.data)).first()
if folder:
form.message = '%s has been successfully deleted' % folder.name
db.session.delete(folder)