QuantConnect / lean-cli

CLI for running the LEAN engine locally and in the cloud
https://www.lean.io/cli
Apache License 2.0
194 stars 99 forks source link

Fix cloud live deploy by project ID #343

Closed jhonabreul closed 1 year ago

jhonabreul commented 1 year ago

It was trying to get local files from a project that only exists in the cloud. It was trying to get the algorithm file by using Path(project) but project is an int, not a path in this case.

Bug introduced with #340

PS D:\someIbTest> lean cloud live 15315602
Started compiling project 'Hipster Blue Alligator'
Detected parameters: none
Build Request Successful for Project ID: 15315602, with CompileID: b3dec7f0f4a0d42fc8501ad0b8136312-fbd24dee313b7488fa99bd0586f3a138, Lean Version: 2.5.0.0.15734
Successfully compiled project 'Hipster Blue Alligator'
Error: The specified project does not contain a main.py or Main.cs file