Skip to content

Commit

Permalink
missed a few 'atlas' to 'ATLAS' changes
Browse files Browse the repository at this point in the history
  • Loading branch information
phycodurus committed Oct 20, 2023
1 parent a11d146 commit a85d459
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tom_dataproducts/forced_photometry/atlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ def query_service(self, query_parameters):
if not Target.objects.filter(pk=query_parameters.get('target_id')).exists():
raise fps.ForcedPhotometryServiceException(f"Target {query_parameters.get('target_id')} does not exist")

if 'atlas' not in settings.FORCED_PHOTOMETRY_SERVICES:
raise fps.ForcedPhotometryServiceException("Must specify 'atlas' settings in FORCED_PHOTOMETRY_SERVICES")
if not settings.FORCED_PHOTOMETRY_SERVICES.get('atlas', {}).get('url'):
if 'ATLAS' not in settings.FORCED_PHOTOMETRY_SERVICES:
raise fps.ForcedPhotometryServiceException("Must specify 'ATLAS' settings in FORCED_PHOTOMETRY_SERVICES")
if not settings.FORCED_PHOTOMETRY_SERVICES.get('ATLAS', {}).get('url'):
raise fps.ForcedPhotometryServiceException(
"Must specify a 'url' under atlas settings in FORCED_PHOTOMETRY_SERVICES"
"Must specify a 'url' under ATLAS settings in FORCED_PHOTOMETRY_SERVICES"
)
if not settings.FORCED_PHOTOMETRY_SERVICES.get('atlas', {}).get('api_key'):
if not settings.FORCED_PHOTOMETRY_SERVICES.get('ATLAS', {}).get('api_key'):
raise fps.ForcedPhotometryServiceException(
"Must specify an 'api_key' under atlas settings in FORCED_PHOTOMETRY_SERVICES"
"Must specify an 'api_key' under ATLAS settings in FORCED_PHOTOMETRY_SERVICES"
)

if 'django_dramatiq' in settings.INSTALLED_APPS:
Expand Down

0 comments on commit a85d459

Please sign in to comment.