diff --git a/CHANGES.txt b/CHANGES.txt index e80ea70..313f82b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,3 +4,21 @@ 0.1.0: - initial release (for legacy sat-api: http://github.com/sat-utils/sat-api.git) + + + +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). + +## [Unreleased] + + +## [v0.1.0] - 2018-10-25 + +Initial Release + +[Unreleased]: https://github.com/sat-utils/sat-api/compare/0.1.0...HEAD +[v0.1.0]: https://github.com/sat-utils/sat-api/tree/0.1.0 \ No newline at end of file diff --git a/satsearch/scene.py b/satsearch/scene.py index 68e9f76..63af9ed 100644 --- a/satsearch/scene.py +++ b/satsearch/scene.py @@ -241,7 +241,7 @@ def __delitem__(self, index): def dates(self): """ Get sorted list of dates for all scenes """ - return sorted([s.date for s in self.scenes]) + return sorted(list(set([s.date for s in self.scenes]))) def collections(self): """ Get collection records for this list of scenes """ diff --git a/satsearch/version.py b/satsearch/version.py index 2e44eee..408bb3f 100644 --- a/satsearch/version.py +++ b/satsearch/version.py @@ -1 +1 @@ -__version__ = '1.0.0rc2' +__version__ = '0.1.0b1' diff --git a/setup.py b/setup.py index 6ecbbc8..c19f66e 100755 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ dependency_links = [x.strip().replace('git+', '') for x in all_reqs if 'git+' not in x] setup( - name='satsearch', + name='sat-search', author='Matthew Hanson (matthewhanson)', author_email='matt.a.hanson@gmail.com', version=__version__, diff --git a/test/test_scene.py b/test/test_scene.py index 0c5ba07..e828c16 100644 --- a/test/test_scene.py +++ b/test/test_scene.py @@ -210,7 +210,7 @@ def test_dates(self): """ Get dates of all scenes """ scenes = self.load_scenes() dates = scenes.dates() - self.assertEqual(len(dates), 2) + self.assertEqual(len(dates), 1) def test_text_calendar(self): """ Get calendar """