From a85d459c375a0ab0c84fedd1214642fd423bc3c7 Mon Sep 17 00:00:00 2001 From: "William (Lindy) Lindstrom" Date: Fri, 20 Oct 2023 01:40:19 +0100 Subject: [PATCH] missed a few 'atlas' to 'ATLAS' changes --- tom_dataproducts/forced_photometry/atlas.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tom_dataproducts/forced_photometry/atlas.py b/tom_dataproducts/forced_photometry/atlas.py index 96b478d0a..5447e7807 100644 --- a/tom_dataproducts/forced_photometry/atlas.py +++ b/tom_dataproducts/forced_photometry/atlas.py @@ -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: