diff --git a/jwql/website/apps/jwql/archive_database_update.py b/jwql/website/apps/jwql/archive_database_update.py index 93d50cee2..b9b2db181 100755 --- a/jwql/website/apps/jwql/archive_database_update.py +++ b/jwql/website/apps/jwql/archive_database_update.py @@ -56,9 +56,18 @@ FILE_AC_CAR_ID_LEN, FILE_SOURCE_ID_LONG_LEN, FILE_TARG_ID_LEN, + JWST_INSTRUMENT_NAMES_MIXEDCASE, + MAST_QUERY_LIMIT, ON_GITHUB_ACTIONS, ON_READTHEDOCS ) +from jwql.utils.logging_functions import log_info, log_fail +from jwql.utils.monitor_utils import initialize_instrument_monitor +from jwql.utils.utils import filename_parser, filesystem_path, get_config +from jwql.website.apps.jwql.data_containers import create_archived_proposals_context # noqa +from jwql.website.apps.jwql.data_containers import get_instrument_proposals, get_filenames_by_instrument # noqa +from jwql.website.apps.jwql.data_containers import get_proposal_info, mast_query_filenames_by_instrument, mast_query_by_rootname # noqa + if not ON_GITHUB_ACTIONS and not ON_READTHEDOCS: # These lines are needed in order to use the Django models in a standalone @@ -69,15 +78,6 @@ django.setup() from jwql.website.apps.jwql.models import Archive, Observation, Proposal, RootFileInfo # noqa - from jwql.utils.constants import JWST_INSTRUMENT_NAMES_MIXEDCASE # noqa - from jwql.utils.logging_functions import log_info, log_fail # noqa - from jwql.utils.monitor_utils import initialize_instrument_monitor # noqa - from jwql.utils.constants import MAST_QUERY_LIMIT # noqa - from jwql.utils.utils import filename_parser, filesystem_path, get_config # noqa - from jwql.website.apps.jwql.data_containers import create_archived_proposals_context # noqa - from jwql.website.apps.jwql.data_containers import get_instrument_proposals, get_filenames_by_instrument # noqa - from jwql.website.apps.jwql.data_containers import get_proposal_info, mast_query_filenames_by_instrument, mast_query_by_rootname # noqa - FILESYSTEM = get_config()['filesystem']