Skip to content

Commit

Permalink
Fix for scheduled_checks (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-rodriguez authored Apr 2, 2024
1 parent e419082 commit 593669f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/scheduled_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 593669f

Please sign in to comment.