Feat: origin store as string

This commit is contained in:
Bertrand Benjamin 2021-04-18 10:01:26 +02:00
parent 598086ddb0
commit abc5513268

View File

@ -100,7 +100,7 @@ class CSVLoader(Loader):
exam = extract_fields(csv, fields)
exam = self.rename_columns(exam)
exam = exam.rename(columns={"exam": "name"})
exam["origin"] = csv
exam["origin"] = str(csv)
exam["tribe"] = tribe
exam["id"] = build_id(
self._config["id_templates"]["exam"], exam.iloc[0]