Skip to content

Commit

Permalink
fix sync on <3.11
Browse files Browse the repository at this point in the history
Signed-off-by: maximsmol <[email protected]>
  • Loading branch information
maximsmol committed Sep 29, 2023
1 parent c0f5add commit 9b1547e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions latch_cli/services/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing import Dict, List, Optional, Tuple

import click
import dateutil.parser as dp
import gql
from gql.transport.exceptions import TransportQueryError
from latch_sdk_gql.execute import JsonValue, execute
Expand Down Expand Up @@ -203,9 +204,7 @@ def sync_rec(
continue

if flt["type"] == "OBJ":
remote_mtime = datetime.fromisoformat(
flt["ldataNodeEvents"]["nodes"][0]["time"]
)
remote_mtime = dp.isoparse(flt["ldataNodeEvents"]["nodes"][0]["time"])

local_mtime = datetime.fromtimestamp(p_stat.st_mtime).astimezone()
if remote_mtime == local_mtime:
Expand Down

0 comments on commit 9b1547e

Please sign in to comment.