Skip to content

Commit

Permalink
import the function in restApi_software_json.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazztok45 committed Nov 12, 2024
1 parent 4dae6d0 commit 1281703
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zbmath_rest2oai/restApi_software_Json.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import requests

from zbmath_rest2oai.swhid import parse_csv_to_dict

from zbmath_rest2oai.getAsXml import add_references_to_software

# Main function to handle the API request, CSV parsing, and JSON modification
def process_metadata(output_log_filename, csv_file_path, api_url, output_path=None):
Expand All @@ -17,6 +17,7 @@ def process_metadata(output_log_filename, csv_file_path, api_url, output_path=No
if response.status_code == 200:
# Parse the response JSON content
data = response.json()
data["result"]=add_references_to_software(api_url,data["result"])

# Parse the CSV and get the dictionary of swmathid to swhid
swmathid_to_swhid = parse_csv_to_dict(csv_file_path)
Expand Down

0 comments on commit 1281703

Please sign in to comment.