diff --git a/backend/corpora/ublad/ublad.py b/backend/corpora/ublad/ublad.py index f0a6b6074..4c8c38f48 100644 --- a/backend/corpora/ublad/ublad.py +++ b/backend/corpora/ublad/ublad.py @@ -73,8 +73,8 @@ def es_settings(self): def sources(self, start=min_date, end=max_date): for directory, _, filenames in os.walk(self.data_directory): _body, tail = os.path.split(directory) - if tail.startswith("."): - # don't go through directories from snapshots + if '.snapshot' in _: + _.remove('.snapshot') continue for filename in filenames: if filename != '.DS_Store':