Skip to content

Commit

Permalink
Add fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Marinovsky committed Jul 11, 2024
1 parent ff1ba2c commit 53bd786
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lean/components/util/live_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def _get_last_portfolio(api_client: APIClient, project_id: str, project_name: Pa

cloud_deployment = api_client.get("live/read", {"projectId": project_id})
container.logger.info(f'----- After cloud_deployment_list: {cloud_deployment}')
cloud_last_time = datetime.strptime(cloud_deployment["launched"], "%Y-%m-%d %H:%M:%S").astimezone(UTC)
cloud_last_time = utc.localize(datetime.min)
if cloud_deployment["success"]:
cloud_last_time = datetime.strptime(cloud_deployment["launched"], "%Y-%m-%d %H:%M:%S").astimezone(UTC)

local_last_time = utc.localize(datetime.min)
live_deployment_path = f"{project_name}/live"
Expand Down

0 comments on commit 53bd786

Please sign in to comment.