Skip to content

Commit

Permalink
feat: add ct duplicates management command
Browse files Browse the repository at this point in the history
  • Loading branch information
aht007 committed Nov 14, 2024
1 parent 97697e2 commit 3e41326
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ def handle(self, *args, **options):
order_state = "Complete"
# TODO: Change for your use case
last_modified_at = "2024-10-23T00:00:00"
limit = 500
offset = 0

orders_result = self.ct_api_client.base_client.orders.query(
where=[
f'orderState="{order_state}"',
f'lastModifiedAt>"{last_modified_at}"',
],
sort=["completedAt desc", "lastModifiedAt desc"],
limit=500,
offset=0,
limit=limit,
offset=offset,
)

orders = orders_result.results
Expand Down

0 comments on commit 3e41326

Please sign in to comment.