Fix crash on approving screenshots on approve package

This commit is contained in:
rubenwardy 2018-05-26 02:31:18 +01:00
parent ef0a32524e
commit 506d5e518e
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C

@ -197,7 +197,7 @@ def approve_package_page(package):
screenshots = PackageScreenshot.query.filter_by(package=package, approved=False).all()
for s in screenshots:
screenshots.approved = True
s.approved = True
triggerNotif(package.author, current_user,
"{} approved".format(package.title), package.getDetailsURL())