We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e786aec commit e945952Copy full SHA for e945952
planet/scripts/__init__.py
@@ -312,14 +312,13 @@ def progress_callback(arg):
312
fp.write(json.dumps(f, indent=2))
313
check_futures(futures)
314
transferred += total_bytes(futures)
315
- recent = max([
316
- api.strp_timestamp(f['properties']['published']) for f in features]
317
- )
+ recent = max([api.utils.strp_timestamp(f['properties']['published'])
+ for f in features])
318
latest = max(latest, recent) if latest else recent
319
if counter.remaining <= 0:
320
break
321
if latest:
322
- sync['latest'] = api.strf_timestamp(latest)
+ sync['latest'] = api.utils.strf_timestamp(latest)
323
with open(sync_file, 'wb') as fp:
324
fp.write(json.dumps(sync, indent=2))
325
if transferred:
0 commit comments