From 0ccc85aa990eaf52d6c0c7e8153d791713c8a1b0 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Fri, 17 Feb 2023 10:22:05 +0100 Subject: [PATCH 1/2] pass extra args to create project this fixes the missing repository_url (see https://github.com/opengisch/pytransifex/blob/0.1.11/pytransifex/api.py#L57) --- pytransifex/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytransifex/api.py b/pytransifex/api.py index aaba840..2b12ec6 100644 --- a/pytransifex/api.py +++ b/pytransifex/api.py @@ -52,8 +52,7 @@ def create_project( project_name: str | None = None, source_language_code: str = "en_GB", private: bool = False, - *args, # absorbing extra args - **kwargs, # absorbing extra kwargs + **kwargs, ) -> None | Resource: """Create a project.""" source_language = tx_api.Language.get(code=source_language_code) @@ -65,6 +64,7 @@ def create_project( source_language=source_language, private=private, organization=self.organization, + **kwargs ) logging.info("Project created!") return res From d506409e93c851eda47d7bf920e6f9ae8d62f288 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Fri, 17 Feb 2023 10:23:59 +0100 Subject: [PATCH 2/2] Update api.py --- pytransifex/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytransifex/api.py b/pytransifex/api.py index 2b12ec6..1fb9aed 100644 --- a/pytransifex/api.py +++ b/pytransifex/api.py @@ -64,7 +64,7 @@ def create_project( source_language=source_language, private=private, organization=self.organization, - **kwargs + **kwargs, ) logging.info("Project created!") return res