Skip to content

Commit 65a4f2e

Browse files
committed
OKRS24-144 Added EpiVis url to settings.py.
1 parent f147d09 commit 65a4f2e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/signal_documentation/settings.py

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
from sentry_sdk.integrations.django import DjangoIntegration
2424
from sentry_sdk.integrations.redis import RedisIntegration
2525

26+
EPIVIS_URL = "https://deploy-preview-36--cmu-delphi-epivis.netlify.app/"
27+
2628
SENTRY_DSN = os.environ.get('SENTRY_DSN')
2729
if SENTRY_DSN:
2830
sentry_sdk.init(

src/signals/views.py

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def get_context_data(self, **kwargs) -> Dict[str, Any]:
101101
"""
102102

103103
context: Dict[str, Any] = super().get_context_data(**kwargs)
104+
context["epivis_url"] = settings.EPIVIS_URL
104105
return context
105106

106107

src/templates/signals/epivis_block.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ <h5>Plot data</h5>
112112

113113
var urlParamsEncoded = btoa(`{"datasets":[{"color":"#415742","title":"value","params":{"_endpoint":"covidcast","data_source":"${dataSource}","signal":"${dataSignal}","time_type":"day","geo_type":"${geographicType}","geo_value":"${geographicValue}"}}]}`);
114114

115-
var epiVisUrl = `https://deploy-preview-36--cmu-delphi-epivis.netlify.app/`;
116-
115+
var epiVisUrl = "{{ epivis_url }}";
116+
117117
if (geographicType === 'Choose...' || geographicValue === '') {
118118
window.open(epiVisUrl, '_blank').focus();
119119
} else {

0 commit comments

Comments
 (0)