We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7f6acc commit 5ed28a2Copy full SHA for 5ed28a2
shotgun_api3/shotgun.py
@@ -4472,11 +4472,11 @@ def _translate_filters_simple(sg_filter):
4472
4473
# Payload optimization: Do not send a full object
4474
# just send the `type` and `id` when combining related queries
4475
- enable_entity_optimization = os.environ.get(
+ enable_entity_optimization_value = os.environ.get(
4476
"SHOTGUN_API_ENABLE_ENTITY_OPTIMIZATION", "0"
4477
).strip().lower()
4478
if (
4479
- enable_entity_optimization not in ["0", "no", "false"]
+ enable_entity_optimization_value == "1"
4480
and condition["path"] != "id"
4481
and condition["relation"] in ["is", "is_not"]
4482
and isinstance(values[0], dict)
0 commit comments