Skip to content

Commit

Permalink
join properly
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Nov 1, 2023
1 parent 0d4b4fa commit 20720e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/desitransfer/spacewatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ def main():
ystrdy = f"{y[0:4]}/{y[4:6]}/{y[6:8]}"
spacewatch_today = spacewatch_root + today + '/'
spacewatch_yesterday = spacewatch_root + ystrdy + '/'
n_files = download_jpg(jpg_list(spacewatch_today), options.destination + today,
n_files = download_jpg(jpg_list(spacewatch_today), os.path.join(options.destination, today),
overwrite=options.overwrite, test=options.test)
log.info("%d files downloaded for %s.", n_files, today)
if options.date is None:
n_files = download_jpg(jpg_list(spacewatch_yesterday), options.destination + ystrdy,
n_files = download_jpg(jpg_list(spacewatch_yesterday), os.path.join(options.destination, ystrdy),
overwrite=options.overwrite, test=options.test)
log.info("%d files downloaded for %s.", n_files, ystrdy)
return 0

0 comments on commit 20720e7

Please sign in to comment.