From 195a77ea3b6da417603603a9f562a48096292e0b Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 27 May 2021 13:29:02 +0000 Subject: [PATCH] fix: resolve issue where certain static artifacts would not be updated. --- describe.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/describe.py b/describe.py index 1f846fd881c..b565872bdde 100755 --- a/describe.py +++ b/describe.py @@ -403,9 +403,7 @@ def document_api(name, version, uri, doc_destination_dir): if resp.status == 200: discovery = json.loads(content) service = build_from_document(discovery) - version = safe_version(version) - doc_name = "{}.{}.json".format(name, version.replace("_", "")) - + doc_name = "{}.{}.json".format(name, version) discovery_file_path = DISCOVERY_DOC_DIR / doc_name revision = None @@ -435,7 +433,7 @@ def document_api(name, version, uri, doc_destination_dir): return document_collection_recursive( - service, "{}_{}.".format(name, version), discovery, discovery, doc_destination_dir + service, "{}_{}.".format(name, safe_version(version)), discovery, discovery, doc_destination_dir )