Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Commit

Permalink
Update tungsten/parsers/supplier/sigma_aldrich/field_parse.py
Browse files Browse the repository at this point in the history
Co-authored-by: Dennis Pham <dennis@dennispham.me>
  • Loading branch information
GreenCappuccino and Den4200 authored Apr 3, 2023
1 parent bfa1edc commit 4c51c01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tungsten/parsers/supplier/sigma_aldrich/field_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ def get_field_mappings(self, field: SdsQueryFieldName) -> tuple[list[SelectComma
SelectCommand(key="title", where_value="HAZARDS"),
SelectCommand(key="subsections")
], lambda x: sorted( # Forgive me whoever witnesses this bodge
[*({str(match) for item in (self.execute_query(x, [
[*({match for item in (self.execute_query(x, [
SelectCommand(key="title", where_value="GHS_LABEL_ELEMENTS"),
SelectCommand(key="items")], lambda y: y) or [])
for match in re.findall(r"([HP]\d{3})", item["name"])} |
{str(match) for item in (self.execute_query(x, [
{match for item in (self.execute_query(x, [
SelectCommand(key="title", where_value="HAZARDS_OTHER"),
SelectCommand(key="items")], lambda y: y) or [])
for match in re.findall(r"([HP]\d{3})", item["name"])})])),
Expand Down

0 comments on commit 4c51c01

Please sign in to comment.