From 5a9e49d15e7c4128b8f173ff3deacbe93238b038 Mon Sep 17 00:00:00 2001
From: David Hoese <david.hoese@ssec.wisc.edu>
Date: Wed, 19 Feb 2020 10:13:14 -0600
Subject: [PATCH] Fix bug in tile indexer saying that all times were new

---
 tile_gen/tile_index.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tile_gen/tile_index.py b/tile_gen/tile_index.py
index 2514c4b..dfdfcc8 100644
--- a/tile_gen/tile_index.py
+++ b/tile_gen/tile_index.py
@@ -110,7 +110,7 @@ def index(input_files, output_shapefile):
     shutil.rmtree(tmp_dir, ignore_errors=True)
 
     times_removed = current_times - new_times
-    times_added = new_times = current_times
+    times_added = new_times - current_times
     return sorted(times_removed), sorted(times_added)
 
 
-- 
GitLab