Skip to content

Commit

Permalink
improve snapshot skipping for ublad
Browse files Browse the repository at this point in the history
  • Loading branch information
Meesch committed May 28, 2024
1 parent e5d8971 commit ffa136e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/corpora/ublad/ublad.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit ffa136e

Please sign in to comment.