mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 06:22:24 +01:00
Fix crash on approving screenshots on approve package
This commit is contained in:
parent
ef0a32524e
commit
506d5e518e
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user