From 506d5e518e2527e46a0d61e2e2996ca628c282e1 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 26 May 2018 02:31:18 +0100 Subject: [PATCH] Fix crash on approving screenshots on approve package --- app/views/packages/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/packages/__init__.py b/app/views/packages/__init__.py index e6f4a26f..c60d68d6 100644 --- a/app/views/packages/__init__.py +++ b/app/views/packages/__init__.py @@ -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())