Skip to content

Commit 62edcd1

Browse files
vsklencarwonder-sk
vsklencar
authored andcommitted
Fixed clone project request argument
1 parent 375d29c commit 62edcd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mergin/client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,8 @@ def clone_project(self, source_project_path, cloned_project_name, cloned_project
414414
url = urllib.parse.urljoin(self.url, urllib.parse.quote(path))
415415
json_headers = {'Content-Type': 'application/json', 'Accept': 'application/json'}
416416
data = {
417-
'namespace': cloned_project_namespace,
418-
'project': cloned_project_name if cloned_project_name else self.username()
417+
'namespace': cloned_project_namespace if cloned_project_namespace else self.username(),
418+
'project': cloned_project_name
419419
}
420420

421421
request = urllib.request.Request(url, data=json.dumps(data).encode(), headers=json_headers, method="POST")

0 commit comments

Comments
 (0)