Skip to content

Commit

Permalink
fix samples with renamed params (#20063)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapratico authored Aug 3, 2021
1 parent 6b9ac65 commit 19487ff
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def sample_list_document_statuses_with_filters_async():
start = datetime(2021, 4, 12)
end = datetime(2021, 4, 14)
statuses = ["Cancelled", "Failed"]
order_by = ["createdDateTimeUtc desc"]
order_by = ["created_on desc"]
results_per_page = 2
skip = 3

Expand All @@ -60,8 +60,8 @@ async def sample_list_document_statuses_with_filters_async():
translation_id,
# filters
statuses=statuses,
translated_after=start,
translated_before=end,
created_after=start,
created_before=end,
# ordering
order_by=order_by,
# paging
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def sample_list_translations_with_filters_async():
start = datetime(2021, 4, 12)
end = datetime(2021, 4, 14)
statuses = ["Cancelled", "Failed"]
order_by = ["createdDateTimeUtc desc"]
order_by = ["created_on desc"]
results_per_page = 2
skip = 3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ def sample_list_document_statuses_with_filters():
start = datetime(2021, 4, 12)
end = datetime(2021, 4, 14)
statuses = ["Cancelled", "Failed"]
order_by = ["createdDateTimeUtc desc"]
order_by = ["created_on desc"]
results_per_page = 2
skip = 3

filtered_docs = client.list_all_document_statuses(
translation_id,
# filters
statuses=statuses,
translated_after=start,
translated_before=end,
created_after=start,
created_before=end,
# ordering
order_by=order_by,
# paging
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def sample_list_translations_with_filters():
start = datetime(2021, 4, 12)
end = datetime(2021, 4, 14)
statuses = ["Cancelled", "Failed"]
order_by = ["createdDateTimeUtc desc"]
order_by = ["created_on desc"]
results_per_page = 2
skip = 3

Expand Down

0 comments on commit 19487ff

Please sign in to comment.