Skip to content

Commit ec28bb9

Browse files
committed
fix: change polling strategy to every 5 sec for doctrans
1 parent 7b0e541 commit ec28bb9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
* Removed `CHANGELOG.md` and `SECURITY.md` from the python package. The `LICENSE` file is no longer installed, but still included in package tarball and wheel files.
1111
* Thanks to [TurtleWilly](https://github.com/TurtleWilly) for the report in [#66](https://github.com/DeepLcom/deepl-python/issues/66).
1212
* Fix a dependency error in our CI by updating to a higher poetry version in most cases.
13+
* Fix getUsage request to be a HTTP GET request, not POST.
1314

1415

1516
## [1.14.0] - 2023-02-21

deepl/translator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ def get_glossary_languages(self) -> List[GlossaryLanguagePair]:
11821182

11831183
def get_usage(self) -> Usage:
11841184
"""Requests the current API usage."""
1185-
status, content, json = self._api_call("v2/usage")
1185+
status, content, json = self._api_call("v2/usage", method="GET")
11861186

11871187
self._raise_for_status(status, content, json)
11881188

0 commit comments

Comments
 (0)