Skip to content

Commit

Permalink
fix dst dir
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Nov 1, 2023
1 parent 5eecc6c commit 0d4b4fa
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,
n_files = download_jpg(jpg_list(spacewatch_today), 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,
n_files = download_jpg(jpg_list(spacewatch_yesterday), 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 0d4b4fa

Please sign in to comment.