Skip to content

Commit 780afcd

Browse files
authored
Merge pull request #217 from cmu-delphi/staging
Staging
2 parents b28bd2f + c471bfd commit 780afcd

File tree

7 files changed

+10495
-18
lines changed

7 files changed

+10495
-18
lines changed

src/.DS_Store

6 KB
Binary file not shown.

src/assets/js/indicatorHandler.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ class IndicatorHandler {
288288
numFlusurvIndicators: this.getFlusurvIndicators().length,
289289
formStartDate: document.getElementById("start_date").value,
290290
formEndDate: document.getElementById("end_date").value,
291-
apiKey: document.getElementById("apiKey").value ? document.getElementById("apiKey").value : "Not provided",
291+
apiKey: document.getElementById("apiKey").value ? document.getElementById("apiKey").value : "",
292292
clientId: clientId ? clientId : "Not available",
293293
};
294294
var covidcastGeoValues = $("#geographic_value").select2("data")
@@ -441,7 +441,7 @@ class IndicatorHandler {
441441
nidssFluLocations: nidssFluLocations,
442442
nidssDengueLocations: nidssDengueLocations,
443443
flusurvLocations: flusurvLocations,
444-
apiKey: document.getElementById("apiKey").value ? document.getElementById("apiKey").value : "Not provided",
444+
apiKey: document.getElementById("apiKey").value ? document.getElementById("apiKey").value : "",
445445
clientId: clientId ? clientId : "Not available",
446446
};
447447
const csrftoken = Cookies.get("csrftoken");
@@ -480,7 +480,7 @@ class IndicatorHandler {
480480
nidssFluLocations: nidssFluLocations,
481481
nidssDengueLocations: nidssDengueLocations,
482482
flusurvLocations: flusurvLocations,
483-
apiKey: document.getElementById("apiKey").value ? document.getElementById("apiKey").value : "Not provided",
483+
apiKey: document.getElementById("apiKey").value ? document.getElementById("apiKey").value : "",
484484
clientId: clientId ? clientId : "Not available",
485485
}
486486
const csrftoken = Cookies.get("csrftoken");
@@ -519,7 +519,7 @@ class IndicatorHandler {
519519
nidssFluLocations: nidssFluLocations,
520520
nidssDengueLocations: nidssDengueLocations,
521521
flusurvLocations: flusurvLocations,
522-
apiKey: document.getElementById("apiKey").value ? document.getElementById("apiKey").value : "Not provided",
522+
apiKey: document.getElementById("apiKey").value ? document.getElementById("apiKey").value : "",
523523
clientId: clientId ? clientId : "Not available",
524524
}
525525
const csrftoken = Cookies.get("csrftoken");
@@ -558,7 +558,7 @@ class IndicatorHandler {
558558
nidssFluLocations: nidssFluLocations,
559559
nidssDengueLocations: nidssDengueLocations,
560560
flusurvLocations: flusurvLocations,
561-
apiKey: document.getElementById("apiKey").value ? document.getElementById("apiKey").value : "Not provided",
561+
apiKey: document.getElementById("apiKey").value ? document.getElementById("apiKey").value : "",
562562
clientId: clientId ? clientId : "Not available",
563563
}
564564
const csrftoken = Cookies.get("csrftoken");

src/base/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class GeographyUnitAdmin(admin.ModelAdmin):
7474
Admin interface for GeographyUnit model.
7575
"""
7676

77-
list_display = ["name", "display_name"]
77+
list_display = ["name", "display_name", "geo_id", "geo_level"]
7878
search_fields = ["name", "display_name"]
7979
ordering = ["name"]
8080
list_per_page = 20

src/base/resources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"display_order_number": 2,
1010
"short_name": "HHS",
1111
},
12-
"hhs-region": {
12+
"hhs": {
1313
"display_name": "U.S. HHS Region",
1414
"display_order_number": 2,
1515
"short_name": "HHS",
@@ -39,7 +39,7 @@
3939
"display_order_number": 7,
4040
"short_name": "ADM 3",
4141
},
42-
"hsa": {
42+
"hsa_nci": {
4343
"display_name": "Health Service Area (HSA-NCI)",
4444
"display_order_number": 8,
4545
"short_name": "HSA-NCI",

src/fixtures/geographic_granularities.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"model": "base.Geography",
1515
"pk": 2,
1616
"fields": {
17-
"name": "hhs-region",
17+
"name": "hhs",
1818
"display_name": "U.S. HHS Region",
1919
"display_order_number": 2,
2020
"used_in": "indicatorsets",
@@ -80,7 +80,7 @@
8080
"model": "base.Geography",
8181
"pk": 14,
8282
"fields": {
83-
"name": "hsa",
83+
"name": "hsa_nci",
8484
"display_name": "Health Service Area (HSA-NCI)",
8585
"display_order_number": 8,
8686
"used_in": "indicatorsets",

0 commit comments

Comments
 (0)