Skip to content

Commit 07bd680

Browse files
authored
Merge pull request #68 from cmu-delphi/rzatserkovnyi/dengue-fix
Rename mentions of denque to the proper dengue
2 parents 31af158 + c3e6c5b commit 07bd680

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

src/api/EpiData.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
fluViewRegions,
1010
gftLocations,
1111
ghtLocations,
12-
nidssDenqueLocations,
12+
nidssDengueLocations,
1313
nidssFluLocations,
1414
nowcastLocations,
1515
quidelLocations,
@@ -391,9 +391,9 @@ export function importGHT({
391391
);
392392
}
393393

394-
export function importNIDSSDenque({ locations }: { locations: string }): Promise<DataGroup | null> {
395-
const regionLabel = nidssDenqueLocations.find((d) => d.value === locations)?.label ?? '?';
396-
const title = `[API] NIDSS-Denque: ${regionLabel}`;
394+
export function importNIDSSDengue({ locations }: { locations: string }): Promise<DataGroup | null> {
395+
const regionLabel = nidssDengueLocations.find((d) => d.value === locations)?.label ?? '?';
396+
const title = `[API] NIDSS-Dengue: ${regionLabel}`;
397397
return loadDataSet(
398398
title,
399399
'nidss_dengue',

src/components/dialogs/ImportAPIDialog.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
| 'cdc'
3737
| 'quidel'
3838
| 'nidss_flu'
39-
| 'nidss_denque'
39+
| 'nidss_dengue'
4040
| 'sensors'
4141
| 'nowcast'
4242
| 'covidcast'
@@ -156,7 +156,7 @@
156156
<Wiki {id} bind:this={handler} />
157157
{:else if dataSource === 'quidel'}
158158
<Quidel {id} bind:this={handler} />
159-
{:else if dataSource === 'nidss_denque'}
159+
{:else if dataSource === 'nidss_dengue'}
160160
<NidssDengue {id} bind:this={handler} />
161161
{:else if dataSource === 'nidss_flu'}
162162
<NidssFlu {id} bind:this={handler} />

src/components/dialogs/dataSources/NIDSSDengue.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<script lang="ts">
2-
import { importNIDSSDenque } from '../../../api/EpiData';
3-
import { nidssDenqueLocations as regions } from '../../../data/data';
2+
import { importNIDSSDengue } from '../../../api/EpiData';
3+
import { nidssDengueLocations as regions } from '../../../data/data';
44
import SelectField from '../inputs/SelectField.svelte';
55
66
export let id: string;
77
88
let locations = regions[0].value;
99
1010
export function importDataSet() {
11-
return importNIDSSDenque({ locations });
11+
return importNIDSSDengue({ locations });
1212
}
1313
</script>
1414

src/data/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ export const nidssFluLocations = [
315315
{ value: 'taipei', label: 'Taipei' },
316316
];
317317

318-
export const nidssDenqueLocations = [
318+
export const nidssDengueLocations = [
319319
{ value: 'nationwide', label: 'Taiwan National' },
320320
{ value: 'central', label: 'Central' },
321321
{ value: 'eastern', label: 'Eastern' },

src/deriveLinkDefaults.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
importFluView,
77
importGFT,
88
importGHT,
9-
importNIDSSDenque,
9+
importNIDSSDengue,
1010
importNIDSSFlu,
1111
importNowcast,
1212
importQuidel,
@@ -53,7 +53,7 @@ const lookups = {
5353
fluview: importFluView,
5454
gft: importGFT,
5555
ght: importGHT,
56-
nidss_denque: importNIDSSDenque,
56+
nidss_dengue: importNIDSSDengue,
5757
nidss_flu: importNIDSSFlu,
5858
nowcast: importNowcast,
5959
quidel: importQuidel,

0 commit comments

Comments
 (0)