From 0d4b4fa466169bc158436704005d97a83f15da0e Mon Sep 17 00:00:00 2001 From: Benjamin Alan Weaver Date: Wed, 1 Nov 2023 14:23:05 -0700 Subject: [PATCH] fix dst dir --- py/desitransfer/spacewatch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/desitransfer/spacewatch.py b/py/desitransfer/spacewatch.py index ca27bc9..de7ff0c 100644 --- a/py/desitransfer/spacewatch.py +++ b/py/desitransfer/spacewatch.py @@ -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