Skip to content

Commit

Permalink
fix: reprocess data reference to eds (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-mih authored Dec 9, 2022
1 parent 201944f commit a40f06c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions licenseware/app_builder/reprocess_data_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,9 @@ def send_files(dataset):
"Authorization": envs.get_auth_token(),
}

upload_url = ExternalDataService.get_upload_url(
_request=auth_headers, app_id=envs.APP_ID, uploader_id=dataset["uploader_id"]
upload_url = ExternalDataService(app_envs=envs).get_upload_url(
app_id=envs.APP_ID, uploader_id=dataset["uploader_id"]
)
if "backend.localhost" in upload_url:
upload_url = upload_url.replace("backend.localhost", "kong")

res = requests.post(
upload_url, files=get_files(dataset["files_uploaded"]), headers=auth_headers
)
Expand Down

0 comments on commit a40f06c

Please sign in to comment.