ssi-dk / bifrost

MIT License
6 stars 6 forks source link

Fix issue where a component requirement isn't working. Currently it's checking off it's own id and not that of the target. #70

Closed kimleeng closed 4 years ago

kimleeng commented 4 years ago

new desired code should be:

elif category == "component":
                    component_to_check = requirement.split(".")[1]
                    field = requirement.split(".")[2:]
                    expected_value = requirements[requirement]
                    s_c_db = get_sample_component(sample_id=self.sample_id,
                                                  component_name=component_to_check)