Skip to content

Commit

Permalink
bug fixing brain sasurl
Browse files Browse the repository at this point in the history
  • Loading branch information
havok2063 committed Nov 21, 2018
1 parent d40bce8 commit cf48f77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/brain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self):

# self._public_api_url = 'https://lore.sdss.utah.edu/public/'
# self._collab_api_url = 'https://lore.sdss.utah.edu/'
self.sasurl = os.getenv('SAS_URL') if 'SAS_URL' in os.environ else self._collab_api_url
#self.sasurl = os.getenv('SAS_URL') if 'SAS_URL' in os.environ else self._collab_api_url
self._mode = 'auto'
self.session_id = None
self.request_session = None
Expand Down Expand Up @@ -127,6 +127,8 @@ def _set_api_urls(self):
self._public_api_url = 'https://dr15.sdss.org/'
self._collab_api_url = 'https://sas.sdss.org/'

self.sasurl = os.getenv('SAS_URL') if 'SAS_URL' in os.environ else self._collab_api_url


def _check_host(self, host, netfile, msg=None):
''' Check for a valid host in the netrc '''
Expand Down

0 comments on commit cf48f77

Please sign in to comment.