Skip to content

Commit fedd8a7

Browse files
mshaileshr@gmail.commshaileshr@gmail.com
authored andcommitted
v1.1.0 coverage improved
1 parent c1c90e5 commit fedd8a7

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

contentstack/assetquery.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ def environment(self, environment):
4141
>>> result = stack.asset_query().environment('production').find()
4242
------------------------------
4343
"""
44-
self.__query_params["environment"] = environment
44+
if environment is not None and environment is not '' and isinstance(environment, str):
45+
self.http_instance.headers['environment'] = environment
46+
# self.__query_params["environment"] = environment
4547
return self
4648

4749
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)