Skip to content

Commit

Permalink
making the typo match the website
Browse files Browse the repository at this point in the history
the typo on the website is "Mechansims" it just happened to work anyway because the mechanism download was the default
  • Loading branch information
EvanDietzMorris committed Nov 22, 2024
1 parent c283ffe commit f9b5573
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions parsers/SIGNOR/src/loadSIGNOR.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def get_latest_source_version(self) -> str:
def get_data(self) -> int:
"""
Gets the SIGNOR 3.0 data.
Must send some complex data and headers, which is what happens below.
Must send some complex data and headers, because it's php with a form with buttons on it,
which is why MultipartEncoder is used.
"""

data_puller = GetData()
Expand Down Expand Up @@ -157,9 +158,8 @@ def get_data(self) -> int:
f.write(response.content)

elif source == self.signor_mechanisms_filename:
mp_encoder = MultipartEncoder(fields={"submit": (None, "Download Mechansisms CV")})
# Mechanism is spelled from on the SIGNOR website. If they fix their spelling, this will break

mp_encoder = MultipartEncoder(fields={"submit": (None, "Download Mechansims CV")})
# Mechanism is misspelled on the SIGNOR website. If they fix their spelling, this will break
headers = {'Content-Type': mp_encoder.content_type}
response = rq.post(self.signor_cv_download, headers=headers, data=mp_encoder)
with open(os.path.join(self.data_path, self.signor_mechanisms_filename), 'wb') as f:
Expand Down

0 comments on commit f9b5573

Please sign in to comment.