Skip to content

Commit 8dc45c9

Browse files
committed
Add missing force parameter in recursive _push_project call
1 parent 98f512e commit 8dc45c9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lean/components/api/project_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def update(self,
8484
files: Optional[List[Dict[str, str]]] = None,
8585
libraries: Optional[List[int]] = None,
8686
encryption_key: Optional[str] = None,
87-
code_source_id: Optional[str] = "cli") -> None:
87+
code_source_id: Optional[str] = None) -> None:
8888
"""Updates an existing project.
8989
9090
:param project_id: the id of the project to update

lean/components/cloud/push_manager.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def _push_project(self, project_path: Path, organization_id: str, encryption_act
148148
if cloud_project.name != project_name:
149149
# cloud project name was changed. Repeat steps to validate the new name locally.
150150
self._logger.info(f"Received new name '{cloud_project.name}' for project '{project_name}' from QuantConnect.com")
151-
self._push_project(project_path, organization_id, encryption_action, encryption_key, Path.cwd() / cloud_project.name)
151+
self._push_project(project_path, organization_id, encryption_action, encryption_key, force, Path.cwd() / cloud_project.name)
152152
return
153153

154154
self._cloud_projects.append(cloud_project)
@@ -256,7 +256,6 @@ def _push_metadata(self, project: Path, cloud_project: QCProject, encryption_act
256256

257257
if not force:
258258
update_args["code_source_id"] = "cli"
259-
260259
if update_args != {}:
261260
self._api_client.projects.update(cloud_project.projectId, **update_args)
262261

0 commit comments

Comments
 (0)