mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 03:37:28 +01:00
QueryBuilder: Fix crash due to set changing size
This commit is contained in:
parent
042e811a40
commit
1a74471b68
@ -258,7 +258,6 @@ class QueryBuilder:
|
|||||||
else:
|
else:
|
||||||
for flag in flags:
|
for flag in flags:
|
||||||
warning = ContentWarning.query.filter_by(name=flag).first()
|
warning = ContentWarning.query.filter_by(name=flag).first()
|
||||||
flags.discard(flag)
|
|
||||||
if warning:
|
if warning:
|
||||||
query = query.filter(Package.content_warnings.any(ContentWarning.id == warning.id))
|
query = query.filter(Package.content_warnings.any(ContentWarning.id == warning.id))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user