Skip to content

Commit e945952

Browse files
committed
follow up to ef851ba
need to merge the branch with sync testing on it...
1 parent e786aec commit e945952

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

planet/scripts/__init__.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -312,14 +312,13 @@ def progress_callback(arg):
312312
fp.write(json.dumps(f, indent=2))
313313
check_futures(futures)
314314
transferred += total_bytes(futures)
315-
recent = max([
316-
api.strp_timestamp(f['properties']['published']) for f in features]
317-
)
315+
recent = max([api.utils.strp_timestamp(f['properties']['published'])
316+
for f in features])
318317
latest = max(latest, recent) if latest else recent
319318
if counter.remaining <= 0:
320319
break
321320
if latest:
322-
sync['latest'] = api.strf_timestamp(latest)
321+
sync['latest'] = api.utils.strf_timestamp(latest)
323322
with open(sync_file, 'wb') as fp:
324323
fp.write(json.dumps(sync, indent=2))
325324
if transferred:

0 commit comments

Comments
 (0)