Skip to content

Commit

Permalink
simplify data-based reader
Browse files Browse the repository at this point in the history
  • Loading branch information
lukavdplas committed Jul 15, 2024
1 parent b5fffcc commit a26ca62
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/addcorpus/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ class NewReader(CSVReader):
for f in corpus.configuration.fields.all()]

def sources(self, *args, **kwargs):
return (
(fn, {}) for fn in glob.glob(f'{self.data_directory}/**/*.csv', recursive=True)
)
return glob.glob(f'{self.data_directory}/**/*.csv', recursive=True)

return NewReader()

0 comments on commit a26ca62

Please sign in to comment.