mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix incorrect filter on bulk game support set
This commit is contained in:
parent
f3d21b79ab
commit
e0b25054dc
@ -164,8 +164,10 @@ def confirm_supports_all_games(username=None):
|
|||||||
|
|
||||||
packages = user.maintained_packages.filter(
|
packages = user.maintained_packages.filter(
|
||||||
Package.state != PackageState.DELETED,
|
Package.state != PackageState.DELETED,
|
||||||
Package.type.in_([PackageType.MOD, PackageType.TXP])) \
|
Package.type.in_([PackageType.MOD, PackageType.TXP]),
|
||||||
.order_by(db.asc(Package.title)).all()
|
~Package.supported_games.any(),
|
||||||
|
Package.supports_all_games == False) \
|
||||||
|
.all()
|
||||||
|
|
||||||
for package in packages:
|
for package in packages:
|
||||||
package.supports_all_games = True
|
package.supports_all_games = True
|
||||||
|
Loading…
Reference in New Issue
Block a user