Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

place files in the image dir when fetched

Jason Kent8e7f2c2638d6
diff --git a/tasks/python3/fetchPreviewSnapshots.py b/tasks/python3/fetchPreviewSnapshots.py
index 3a5a95e8a..4d493d817 100644
--- a/tasks/python3/fetchPreviewSnapshots.py
+++ b/tasks/python3/fetchPreviewSnapshots.py
@@ -178,7 +178,7 @@ def get_snapshots(layer):
continue
try:
- with open(file_name, 'xb') as image_file:
+ with open(dest_file_name, 'xb') as image_file:
image_req = requests.get(snapshots_url, params=params)
image_file.write(image_req.content)
print('\n')