Skip to content

Commit

Permalink
Get the URL safely
Browse files Browse the repository at this point in the history
  • Loading branch information
dvince2 committed Jul 15, 2024
1 parent 2bd1465 commit 3973d37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/askem_beaker/contexts/dataset/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ async def save_dataset_request(self, message):
"id": new_dataset_id,
"username": self.auth.username,
"password": self.auth.password,
"filename": filename
"filename": filename,
"dataservice_url": dataservice_url
}
)
df_response = await self.execute(code)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
with tempfile.TemporaryFile() as temp_csv_file:
{{ var_name|default("df") }}.to_csv(temp_csv_file, index=False, header=True)
temp_csv_file.seek(0)
# Get the HMI_SERVER endpoint and auth token from the environment variable
hmi_server = os.getenv('HMI_SERVER_URL')
# Set the HMI_SERVER endpoint
hmi_server = "{{dataservice_url}}"

# Define the id and filename dynamically
id = "{{id}}"
Expand Down

0 comments on commit 3973d37

Please sign in to comment.