Skip to content

Commit

Permalink
Only specify include_data_sources if not default.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Feb 27, 2024
1 parent d40b1ea commit 7e86646
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tiled/client/constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,14 @@ def from_context(
and (context.http_client.auth is None)
):
context.authenticate()
params = {}
if include_data_sources:
params["include_data_sources"] = True
content = handle_error(
context.http_client.get(
item_uri,
headers={"Accept": MSGPACK_MIME_TYPE},
params={"include_data_sources": include_data_sources},
params=params,
)
).json()
else:
Expand Down

0 comments on commit 7e86646

Please sign in to comment.