Skip to content

Commit

Permalink
Fix import order and location
Browse files Browse the repository at this point in the history
  • Loading branch information
bhilbert4 committed Jan 15, 2025
1 parent 79f835a commit 365506d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions jwql/website/apps/jwql/archive_database_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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']


Expand Down

0 comments on commit 365506d

Please sign in to comment.