From 593669f795719e862fc2e8707d1a2deda393a6ed Mon Sep 17 00:00:00 2001 From: David Rodriguez Date: Tue, 2 Apr 2024 16:17:46 -0400 Subject: [PATCH] Fix for scheduled_checks (#490) --- tests/scheduled_checks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/scheduled_checks.py b/tests/scheduled_checks.py index 0d7bf1d3a..206590b71 100644 --- a/tests/scheduled_checks.py +++ b/tests/scheduled_checks.py @@ -4,7 +4,7 @@ import requests from tqdm import tqdm from astrodbkit2.astrodb import create_database, Database -from astrodb_utils.utils import check_internet_connection +from astrodb_utils.utils import internet_connection sys.path.append(".") from simple.schema import * @@ -52,7 +52,7 @@ def test_spectra_urls(db): spectra_urls = db.query(db.Spectra.c.spectrum).astropy() broken_urls = [] codes = [] - internet = check_internet_connection() + internet, _ = internet_connection() if internet: for spectrum_url in tqdm(spectra_urls["spectrum"]): request_response = requests.head(spectrum_url)