From 6edee04416440d4c8cdd89720cf327db1a7c9af3 Mon Sep 17 00:00:00 2001 From: Asish Abraham Joseph Date: Sat, 1 Oct 2022 19:01:08 +0530 Subject: [PATCH 1/2] Change buildId type to int in download_project_translations --- crowdin_api/api_resources/translations/resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crowdin_api/api_resources/translations/resource.py b/crowdin_api/api_resources/translations/resource.py index 9ee6ca4..507bb96 100644 --- a/crowdin_api/api_resources/translations/resource.py +++ b/crowdin_api/api_resources/translations/resource.py @@ -261,7 +261,7 @@ def upload_translation( }, ) - def download_project_translations(self, projectId: int, buildId: str): + def download_project_translations(self, projectId: int, buildId: int): """ Download Project Translations. From e94e0701175de07cb059e0d1a7c9cd0ac04c0c70 Mon Sep 17 00:00:00 2001 From: Asish Abraham Joseph Date: Sat, 1 Oct 2022 19:40:30 +0530 Subject: [PATCH 2/2] Change buildId type to int in TranslationsResource --- crowdin_api/api_resources/translations/resource.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crowdin_api/api_resources/translations/resource.py b/crowdin_api/api_resources/translations/resource.py index 507bb96..8844bb1 100644 --- a/crowdin_api/api_resources/translations/resource.py +++ b/crowdin_api/api_resources/translations/resource.py @@ -24,7 +24,7 @@ class TranslationsResource(BaseResource): https://developer.crowdin.com/api/v2/#tag/Translations """ - def get_builds_path(self, projectId: int, buildId: Optional[str] = None): + def get_builds_path(self, projectId: int, buildId: Optional[int] = None): if buildId: return f"projects/{projectId}/translations/builds/{buildId}" @@ -274,7 +274,7 @@ def download_project_translations(self, projectId: int, buildId: int): path=f"{self.get_builds_path(projectId=projectId, buildId=buildId)}/download", ) - def check_project_build_status(self, projectId: int, buildId: str): + def check_project_build_status(self, projectId: int, buildId: int): """ Check Project Build Status. @@ -287,7 +287,7 @@ def check_project_build_status(self, projectId: int, buildId: str): path=self.get_builds_path(projectId=projectId, buildId=buildId), ) - def cancel_build(self, projectId: int, buildId: str): + def cancel_build(self, projectId: int, buildId: int): """ Cancel Build.