Skip to content

Commit 038d287

Browse files
committed
Fix the pull order for payouts and payout_entries to ascending
1 parent e52977c commit 038d287

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "squaredown"
3-
version = "1.6.2"
3+
version = "1.6.3"
44
description = "Customized Square interface"
55
authors = ["Jason Romano <aracnid@gmail.com>"]
66
license = "MIT"

squaredown/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
from squaredown.orders import Orders
77

88

9-
__version__ = "1.6.2"
9+
__version__ = "1.6.3"

squaredown/payouts.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ def read(self, **kwargs):
9292

9393
result = self.api_payouts.list_payouts(
9494
begin_time=start.isoformat(),
95-
end_time=end.isoformat()
95+
end_time=end.isoformat(),
96+
sort_order='ASC'
9697
)
9798

9899
if result.is_success():
@@ -102,7 +103,9 @@ def read(self, **kwargs):
102103
if result.cursor:
103104
result = self.api_payouts.list_payouts(
104105
begin_time=start.isoformat(),
105-
end_time=end.isoformat()
106+
end_time=end.isoformat(),
107+
sort_order='ASC',
108+
cursor=result.cursor
106109
)
107110
else:
108111
break
@@ -227,7 +230,8 @@ def read(self, payout_id: str) -> list:
227230
payout_entries = []
228231

229232
result = self.api_payouts.list_payout_entries(
230-
payout_id=payout_id
233+
payout_id=payout_id,
234+
sort_order='ASC'
231235
)
232236

233237
if result.is_success():
@@ -237,6 +241,7 @@ def read(self, payout_id: str) -> list:
237241
if result.cursor:
238242
result = self.api_payouts.list_payout_entries(
239243
payout_id=payout_id,
244+
sort_order='ASC',
240245
cursor=result.cursor
241246
)
242247
else:

0 commit comments

Comments
 (0)