Skip to content

Commit

Permalink
Add print statement to debug PUT results and rename FIA_API_PATH
Browse files Browse the repository at this point in the history
There is discrepancy between these specification files and the existing local DB, it is likely there will be further discrepancies in staging and/or prod
  • Loading branch information
HumzahJavid committed Aug 12, 2024
1 parent fe064c2 commit 3c118d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/specification_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import requests

FIA_API_PATH = sys.argv[1]
FIA_API_URL = sys.argv[1]
FIA_API_API_KEY = sys.argv[2]

successful_update: int = 200
Expand All @@ -28,8 +28,9 @@
json_spec = json.load(specification)

response = requests.put(
url=f"{FIA_API_PATH}/instrument/{instrument_name}/specification",
url=f"{FIA_API_URL}/instrument/{instrument_name}/specification",
json=json_spec,
headers=auth_headers,
timeout=2000,
)
print(f"PUT result, {instrument_name} - {response.status_code}") # noqa: T201

0 comments on commit 3c118d0

Please sign in to comment.