Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
apply white-/blacklist only on 'esa_cci_odp'
Browse files Browse the repository at this point in the history
  • Loading branch information
forman committed Oct 6, 2017
1 parent 9e476e6 commit 7366a2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cate/webapi/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ def get_data_sources(self, data_store_id: str, monitor: Monitor) -> list:
if data_store is None:
raise ValueError('Unknown data store: "%s"' % data_store_id)
data_sources = data_store.query(monitor=monitor)
if data_store_id != 'local':
if data_store_id == 'esa_cci_odp':
# Filter ESA Open Data Portal data sources
data_source_dict = {ds.id: ds for ds in data_sources}
# noinspection PyTypeChecker
data_source_ids = filter_fileset(data_source_dict.keys(),
Expand Down

0 comments on commit 7366a2d

Please sign in to comment.