From 08abc2d4c8cfc0a6668bff9772d6b96457990161 Mon Sep 17 00:00:00 2001 From: Goutte Date: Tue, 1 Aug 2017 07:01:16 +0200 Subject: [PATCH] Remove duplicate NetCDFs from AMDA's API response. --- CHANGELOG.md | 2 +- web/run.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dcce70d..f9eefac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,8 +12,8 @@ - [x] Loader and targets loading animation - [x] Start/Stop datetime fields - [x] Retry CSV generation when it fails due to a bug in AMDA's API +- [x] Remove duplicate NetCDFs from AMDA's API response - [ ] Optimize CSV generation (with some vectorization using numpy) -- [ ] Remove duplicate NetCDFs from AMDA's API response - [ ] Download raw data (as CSV) for current time interval and targets - [ ] Same via SAMP - [ ] Credit the author of the pixel art planets diff --git a/web/run.py b/web/run.py index 92613d8..0f2d544 100755 --- a/web/run.py +++ b/web/run.py @@ -219,7 +219,10 @@ def retrieve_data(orbiter, what, started_at, stopped_at): finally: retries += 1 if not remote_gzip_files: - abort(400, "Failed to fetch data at '%s' : %s" % (url, errors)) + abort(400, "Failed to fetch gzip files list for %s at '%s' : %s" % + (orbiter, url, errors)) + else: + remote_gzip_files = list(set(remote_gzip_files)) log.debug("Fetched remote gzip files list : %s." % str(remote_gzip_files)) -- libgit2 0.21.2