Skip to content

Commit

Permalink
change name of auth token setting to be more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
LTDakin committed May 20, 2024
1 parent 2d6bcae commit f8e0a6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datalab/datalab_session/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def get_archive_from_basename(basename: str) -> dict:
query_params = {'basename_exact': basename }

headers = {
'Authorization': f'Token {settings.AUTH_TOKEN}'
'Authorization': f'Token {settings.ARCHIVE_API_TOKEN}'
}

response = requests.get(settings.ARCHIVE_API + '/frames/', params=query_params, headers=headers)
Expand Down
2 changes: 1 addition & 1 deletion datalab/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def get_list_from_env(variable, default=None):

# Datalab Archive
ARCHIVE_API = os.getenv('ARCHIVE_API', 'https://archive-api.lco.global')
AUTH_TOKEN = os.getenv('AUTH_TOKEN')
ARCHIVE_API_TOKEN = os.getenv('ARCHIVE_API_TOKEN')

# Database
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases
Expand Down

0 comments on commit f8e0a6b

Please sign in to comment.