Skip to content

Commit

Permalink
Add data section to the proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
ka-sarthak committed Oct 23, 2024
1 parent 95ad3ce commit 27e363f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nomad_analysis/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ def get_reference(upload_id: str, entry_id: str) -> str:
entry_id (str): Entry ID of the entry.
Returns:
str: Proxy value of the form '../uploads/{upload_id}/archive/{entry_id}'
str: Proxy value of the form '../uploads/{upload_id}/archive/{entry_id}#/data'
"""
return f'../uploads/{upload_id}/archive/{entry_id}'
return f'../uploads/{upload_id}/archive/{entry_id}#/data'


def create_entry_with_api(
Expand All @@ -141,7 +141,7 @@ def create_entry_with_api(
params (dict): Additional parameters for the request.
Returns:
str: proxy value of the form '../uploads/{upload_id}/archive/{entry_id}'
str: proxy value of the form '../uploads/{upload_id}/archive/{entry_id}#/data'
"""
endpoint = base_url + f'/uploads/{upload_id}/raw/{path}'

Expand Down

0 comments on commit 27e363f

Please sign in to comment.