mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 19:57:29 +01:00
parent
38baea3dcf
commit
31a748b0b3
@ -178,7 +178,8 @@ def view_user(username=None):
|
||||
~Package.screenshots.any(), Package.state == PackageState.APPROVED).all()
|
||||
|
||||
packages_with_small_screenshots = user.maintained_packages \
|
||||
.filter(Package.screenshots.any(and_(PackageScreenshot.width < PackageScreenshot.SOFT_MIN_SIZE[0],
|
||||
.filter(Package.state != PackageState.DELETED,
|
||||
Package.screenshots.any(and_(PackageScreenshot.width < PackageScreenshot.SOFT_MIN_SIZE[0],
|
||||
PackageScreenshot.height < PackageScreenshot.SOFT_MIN_SIZE[1]))) \
|
||||
.all()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user