From 5061aae8072a95c2de11b2ec6dbf60197f728a5a Mon Sep 17 00:00:00 2001 From: Anne Haley Date: Fri, 25 Oct 2024 17:11:15 +0000 Subject: [PATCH] style: fix lint errors --- uvdat/core/tasks/dataset.py | 2 +- uvdat/core/tasks/map_layers.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/uvdat/core/tasks/dataset.py b/uvdat/core/tasks/dataset.py index d2b83b5e..c928162f 100644 --- a/uvdat/core/tasks/dataset.py +++ b/uvdat/core/tasks/dataset.py @@ -20,7 +20,7 @@ def convert_dataset( dataset.save() # remove any existing generated files - generated_files = FileItem.objects.filter(dataset=dataset, metadata__generated=True).delete() + FileItem.objects.filter(dataset=dataset, metadata__generated=True).delete() if dataset.dataset_type == dataset.DatasetType.RASTER: RasterMapLayer.objects.filter(dataset=dataset).delete() diff --git a/uvdat/core/tasks/map_layers.py b/uvdat/core/tasks/map_layers.py index 674932db..9603c2f2 100644 --- a/uvdat/core/tasks/map_layers.py +++ b/uvdat/core/tasks/map_layers.py @@ -49,7 +49,8 @@ def add_styling(geojson_data, style_options): def split_raster_zip(file_item, style_options): """For each raster image in a zip file, create a new FileItem.""" - # NOTE: This implementation is not abstract; this was built for the Boston Flood Timeseries dataset. + # NOTE: This implementation is not abstract; + # this was built for the Boston Flood Timeseries dataset. import large_image_converter if file_item.file_type == 'zip':