Skip to content

Commit b558197

Browse files
Merge pull request #11 from contentstack/v1.1.0
V1.1.0
2 parents a01be34 + a871e77 commit b558197

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

contentstack/assetquery.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def environment(self, environment):
4141
>>> result = stack.asset_query().environment('production').find()
4242
------------------------------
4343
"""
44-
self.__query_params["environment"] = environment
44+
if isinstance(environment, str):
45+
self.http_instance.headers['environment'] = environment
4546
return self
4647

4748
def version(self, version):

contentstack/basequery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def limit(self, limit_count: int):
9292
:param limit_count:
9393
:return: self
9494
"""
95-
self.query_params["skip"] = str(limit_count)
95+
self.query_params["limit"] = str(limit_count)
9696
return self
9797

9898
def order_by_ascending(self, key: str):

coverage.svg

Lines changed: 3 additions & 3 deletions
Loading

0 commit comments

Comments
 (0)