From a26ca6201cb857b0bf12bd088eda0dfa712c6a75 Mon Sep 17 00:00:00 2001 From: Luka van der Plas Date: Mon, 15 Jul 2024 12:43:07 +0200 Subject: [PATCH] simplify data-based reader based on https://github.com/UUDigitalHumanitieslab/ianalyzer-readers/pull/15 --- backend/addcorpus/reader.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/addcorpus/reader.py b/backend/addcorpus/reader.py index 2566f6fa6..ca95eea13 100644 --- a/backend/addcorpus/reader.py +++ b/backend/addcorpus/reader.py @@ -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()