Skip to content
Snippets Groups Projects
Verified Commit 5374d795 authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

Initialize corpus_types

parent 56ffb9f5
No related branches found
No related tags found
1 merge request!18Initialize corpus_types
Pipeline #216857 passed
......@@ -40,7 +40,6 @@ def mock_worker(monkeypatch):
worker = ImportWorker()
worker.args = Namespace(dev=False)
worker.corpus_types = None
worker._corpus_id = "corpusid"
worker.worker_run_id = "bbbbbbbb-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
......
......@@ -48,6 +48,9 @@ class ImportWorker(BaseWorker, ElementMixin, MetaDataMixin, TranscriptionMixin):
self.elements = []
self.archive_depth = 0
# https://gitlab.teklia.com/workers/base-worker/-/issues/386
self.corpus_types = {}
def configure(self, *args, **kwargs):
super().configure(*args, *kwargs)
# We need more info than just what is serialized in a worker run's process
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment