Skip to content

Commit a0dffbd

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

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

app/data/__init__.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66

77
# Mapping of services to data-sources.
88
class DATA_SOURCES:
9-
DATA_SOURCES = {}
9+
data_SOURCES = {}
1010

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

16-
def data_source(self, source : str)-> LocationService:
17-
return self.DATA_SOURCES.get(source.lower())
16+
def data_source(self, source: str)-> LocationService:
17+
18+
return self.data_SOURCES.get(source.lower())

0 commit comments

Comments
 (0)