Skip to content

Commit 3987b3c

Browse files
committed
Data_Source change for a more Aggregate approach
1 parent 7ed67ed commit 3987b3c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/data/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ class DATA_SOURCES:
99
DATA_SOURCES = {}
1010

1111
def data(self)
12-
self.data_Sources['jhu'] = JhuLocationService()
13-
self.data_Sources['csbs'] = CSBSLocationService()
14-
self.data_Sources['nyt'] = NYTLocationService()
12+
self.DATA_SOURCES['jhu'] = JhuLocationService()
13+
self.DATA_SOURCES['csbs'] = CSBSLocationService()
14+
self.DATA_SOURCES['nyt'] = NYTLocationService()
1515

1616
def data_source(self, source : str)-> LocationService:
17-
return self.dataSource.get(source.lower())
17+
return self.DATA_SOURCES.get(source.lower())

0 commit comments

Comments
 (0)