Skip to content

Commit c390176

Browse files
authored
Merge pull request #161 from cmu-delphi/api_host_rename
use api.delphi.cmu.edu instead of api.covidcast
2 parents 5d25c4a + c4fcf67 commit c390176

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/signal_documentation/settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
from sentry_sdk.integrations.redis import RedisIntegration
2525

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

2930
SENTRY_DSN = os.environ.get('SENTRY_DSN')
3031
if SENTRY_DSN:

src/signals/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from signal_documentation.celery import BaseTaskWithRetry, app
88
from signals.tools import SignalLastUpdatedParser
99

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

1212

1313
@app.task(bind=BaseTaskWithRetry)

src/signals/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def get_context_data(self, **kwargs) -> Dict[str, Any]:
112112
context: Dict[str, Any] = super().get_context_data(**kwargs)
113113
context["epivis_url"] = settings.EPIVIS_URL
114114
context["data_export_url"] = settings.DATA_EXPORT_URL
115+
context["covidcast_url"] = settings.COVIDCAST_URL
115116
return context
116117

117118

src/templates/signals/data_visualization_export.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ <h5>Plot / Export data</h5>
275275

276276
if (!requestSent) {
277277
$.ajax({
278-
url: 'https://api.covidcast.cmu.edu/epidata/covidcast/',
278+
url: '{{ covidcast_url }}',
279279
type: 'GET',
280280
data: {
281281
'time_type': timeType,

0 commit comments

Comments
 (0)