Skip to content

Commit

Permalink
rename var for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbryer committed Jan 20, 2025
1 parent 0b6b3c0 commit f22087a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion publish-schema/src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class Config:
PROJECT_ID = get_value_from_env("PROJECT_ID", "ons-sds-jb")
PROCESS_TIMEOUT = int(get_value_from_env("PROCESS_TIMEOUT", "540"))
API_URL = get_value_from_env("API_URL", "https://34.120.41.215.nip.io")
SDS_URL = get_value_from_env("API_URL", "https://34.120.41.215.nip.io")
SECRET_ID = get_value_from_env("SECRET_ID", "oauth-client-name")
GITHUB_URL = get_value_from_env("GITHUB_URL", "https://raw.githubusercontent.com/ONSdigital/sds-prototype-schema/refs/heads/SDSS-823-schema-publication-automation-spike/")
POST_SCHEMA_ENDPOINT = get_value_from_env("POST_SCHEMA_URL", "/v1/schema?survey_id=")
Expand Down
4 changes: 2 additions & 2 deletions publish-schema/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def post_schema(schema, survey_id) -> requests.Response:
headers = generate_headers()
logger.info(f"Posting schema for survey {survey_id}")
response = session.post(
f"{Config.API_URL}{Config.POST_SCHEMA_ENDPOINT}{survey_id}",
f"{Config.SDS_URL}{Config.POST_SCHEMA_ENDPOINT}{survey_id}",
json=schema,
headers=headers,
)
Expand Down Expand Up @@ -196,7 +196,7 @@ def get_schema_metadata(survey_id) -> dict:
headers = generate_headers()
try:
response = session.get(
f"{Config.API_URL}{Config.GET_SCHEMA_METADATA_ENDPOINT}{survey_id}",
f"{Config.SDS_URL}{Config.GET_SCHEMA_METADATA_ENDPOINT}{survey_id}",
headers=headers,
)
response.raise_for_status()
Expand Down

0 comments on commit f22087a

Please sign in to comment.