Skip to content

use api.delphi.cmu.edu instead of api.covidcast #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/signal_documentation/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from sentry_sdk.integrations.redis import RedisIntegration

EPIVIS_URL = os.environ.get("EPIVIS_URL", "https://deploy-preview-36--cmu-delphi-epivis.netlify.app/")
DATA_EXPORT_URL = os.environ.get("DATA_EXPORT_URL", "https://api.covidcast.cmu.edu/epidata/covidcast/csv")
DATA_EXPORT_URL = os.environ.get("DATA_EXPORT_URL", "https://api.delphi.cmu.edu/epidata/covidcast/csv")

SENTRY_DSN = os.environ.get('SENTRY_DSN')
if SENTRY_DSN:
Expand Down
2 changes: 1 addition & 1 deletion src/signals/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from signal_documentation.celery import BaseTaskWithRetry, app
from signals.tools import SignalLastUpdatedParser

COVID_CAST_META_URL = os.environ.get('COVID_CAST_META_URL', 'https://api.covidcast.cmu.edu/epidata/covidcast/meta')
COVID_CAST_META_URL = os.environ.get('COVID_CAST_META_URL', 'https://api.delphi.cmu.edu/epidata/covidcast/meta')


@app.task(bind=BaseTaskWithRetry)
Expand Down
2 changes: 1 addition & 1 deletion src/templates/signals/data_visualization_export.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ <h5>Plot / Export data</h5>

if (!requestSent) {
$.ajax({
url: 'https://api.covidcast.cmu.edu/epidata/covidcast/',
url: 'https://api.delphi.cmu.edu/epidata/covidcast/',
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we wanna get this from an environment variable?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great call! Thx!

type: 'GET',
data: {
'time_type': timeType,
Expand Down
Loading