Open YanickNdepo opened 2 years ago
actually, this has been achieved but the extra_data column in the database contains a dict such as : {'level': None, 'concentration': None, 'unit': None} when the component type is 'lithology'. isn't it better to set an empty dictionary if no data ?
the table created to implement link between components and intervals (many to many) must contains component value for a specific interval.
e.g: the interval 1 contains component 2 (toluene), and the value of this component in that interval is 110 mg/l. So the dict {value: 110, 'unit': 'mg/l'} will be the link table occurrence's value in the database.